Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
50ce2abb
Commit
50ce2abb
authored
Jul 15, 2012
by
Davis King
Browse files
Made the bridge trap and log std::exception exceptions rather than
letting them fly out and terminate the application.
parent
2bc6cf55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dlib/bridge/bridge.h
dlib/bridge/bridge.h
+12
-0
No files found.
dlib/bridge/bridge.h
View file @
50ce2abb
...
...
@@ -400,6 +400,12 @@ namespace dlib
<<
con
->
get_foreign_ip
()
<<
":"
<<
con
->
get_foreign_port
()
<<
".
\n
The exception error message is:
\n
"
<<
e
.
what
();
}
catch
(
std
::
exception
&
e
)
{
dlog
<<
LERROR
<<
"std::exception thrown while deserializing message from "
<<
con
->
get_foreign_ip
()
<<
":"
<<
con
->
get_foreign_port
()
<<
".
\n
The exception error message is:
\n
"
<<
e
.
what
();
}
...
...
@@ -489,6 +495,12 @@ namespace dlib
<<
con
->
get_foreign_ip
()
<<
":"
<<
con
->
get_foreign_port
()
<<
".
\n
The exception error message is:
\n
"
<<
e
.
what
();
}
catch
(
std
::
exception
&
e
)
{
dlog
<<
LERROR
<<
"std::exception thrown while serializing message to "
<<
con
->
get_foreign_ip
()
<<
":"
<<
con
->
get_foreign_port
()
<<
".
\n
The exception error message is:
\n
"
<<
e
.
what
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment