Commit 86e2ec44 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed CASTOR exceptions so they carry a meaningful serrno (SEINTERNAL).

parent 75dd7503
......@@ -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
......
......@@ -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() {};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment