Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
86e2ec44
Commit
86e2ec44
authored
Mar 26, 2014
by
Eric Cano
Browse files
Fixed CASTOR exceptions so they carry a meaningful serrno (SEINTERNAL).
parent
75dd7503
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/exception/Exception.cpp
View file @
86e2ec44
...
...
@@ -36,7 +36,7 @@ castor::exception::Exception::Exception(int se, std::string context) :
// constructor
//------------------------------------------------------------------------------
castor
::
exception
::
Exception
::
Exception
(
std
::
string
context
)
:
m_message
(
context
),
m_serrno
(
0
){}
m_message
(
context
),
m_serrno
(
SEINTERNAL
){}
//------------------------------------------------------------------------------
// copy constructor
...
...
castor/tape/tapeserver/exception/Exception.hpp
View file @
86e2ec44
...
...
@@ -33,7 +33,7 @@ namespace castor {
namespace
tape
{
class
Exception
:
public
castor
::
exception
::
Exception
{
public:
Exception
(
const
std
::
string
&
what
)
:
castor
::
exception
::
Exception
(
0
)
{
setWhat
(
what
);
}
Exception
(
const
std
::
string
&
what
)
:
castor
::
exception
::
Exception
(
SEINTERNAL
)
{
setWhat
(
what
);
}
// Copy operator needed to throw anonymous instance (throw myClass("some failure."))
Exception
(
const
Exception
&
ex
);
virtual
~
Exception
()
throw
()
{};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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