StreamBase C++ API
10.6.0.2
|
The base class for all StreamBaseExceptions. More...
#include <Exceptions.hpp>
Public Member Functions | |
StreamBaseException (std::string code, std::string message, sb_internal::Errors::Type error_type=sb_internal::Errors::UNKNOWNTYPE, std::string type="StreamBaseException") | |
Constructor. More... | |
StreamBaseException (std::string code, std::string message, StreamBaseException &c, sb_internal::Errors::Type error_type=sb_internal::Errors::UNKNOWNTYPE, std::string type="StreamBaseException") | |
Constructor. More... | |
virtual | ~StreamBaseException () throw () |
Destructor. More... | |
virtual const char * | what () const throw () |
Returns the message as a C string. More... | |
Protected Member Functions | |
virtual std::string | causeAsXmlString () const |
The base class for all StreamBaseExceptions.
Currently defined exceptions include
An StreamBaseException should never be thrown directly; use the Throw macro instead.
sb::StreamBaseException::StreamBaseException | ( | std::string | code, |
std::string | message, | ||
sb_internal::Errors::Type | error_type = sb_internal::Errors::UNKNOWNTYPE , |
||
std::string | type = "StreamBaseException" |
||
) |
Constructor.
code | see ExceptionsCodes.hpp; use SB_NEW_MESSAGE_CODE if in doubt |
message | the exception message |
error_type | the class of error, for server runtime error handling |
type | the type of the exception |
sb::StreamBaseException::StreamBaseException | ( | std::string | code, |
std::string | message, | ||
StreamBaseException & | c, | ||
sb_internal::Errors::Type | error_type = sb_internal::Errors::UNKNOWNTYPE , |
||
std::string | type = "StreamBaseException" |
||
) |
Constructor.
code | see ExceptionsCodes.hpp; use SB_NEW_MESSAGE_CODE if in doubt |
message | the exception message |
c | an exception that is the "cause" of this exception |
error_type | the class of error, for server runtime error handling |
type | the type of the exception |
|
virtual |
Destructor.
|
inlinevirtual |
Returns the message as a C string.
The string is owned by this object, so the pointer becomes invalid upon destruction of the StreamBaseException.