NEOCCA bindings Specification
0.2.8
|
This class extends the STL std::exception to allow the thrower to specify the message that the stl says we return via what(). More...
#include <Exception.hh>
Public Member Functions | |
virtual | ~Exception () throw () |
virtual const char * | what () |
Exception (enum ExceptionType t, const ::std::string &message) throw () | |
Exception (enum ExceptionType t) throw () | |
Exception () throw () | |
Exception (const ::std::string &message) throw () | |
enum ExceptionType | getType () |
::std::string | getMessage () |
string form of std::exception::what(). | |
void | setType (enum ExceptionType t) |
void | setMessage (const ::std::string &message) |
Private Attributes | |
enum ExceptionType | ccaType |
::std::string | ccaMessage |
This class extends the STL std::exception to allow the thrower to specify the message that the stl says we return via what().
By default stl says strings come out but provides no way to put them into its base class exception. It is isomorphic to ccafeopq::Exception, but not castable thereunto, because that would make the spec framework specific. ccafeopq could be changed to inherit this.
Memory Lifecycle: This exception is thrown with throw new ccafeopq::exception(...) . The catcher, if any, is responsible for calling delete exceptionInstance; or rethrowing if appropriate.
virtual neo::cca::Exception::~Exception | ( | ) | throw () [inline, virtual] |
{}
neo::cca::Exception::Exception | ( | enum ExceptionType | t, |
const ::std::string & | message | ||
) | throw () [inline] |
{ ccaType = t; ccaMessage = message; }
neo::cca::Exception::Exception | ( | enum ExceptionType | t | ) | throw () [inline] |
{ ccaType = t; ccaMessage = ::std::string(""); }
neo::cca::Exception::Exception | ( | ) | throw () [inline] |
{ ccaType = Nonstandard; ccaMessage = ::std::string(""); }
neo::cca::Exception::Exception | ( | const ::std::string & | message | ) | throw () [inline] |
{ ccaType = Nonstandard; ccaMessage = message; }
virtual const char* neo::cca::Exception::what | ( | ) | [inline, virtual] |
{ return ccaMessage.c_str(); }
enum ExceptionType neo::cca::Exception::getType | ( | ) | [inline] |
{ return ccaType; }
::std::string neo::cca::Exception::getMessage | ( | ) | [inline] |
string form of std::exception::what().
{return ccaMessage; }
void neo::cca::Exception::setType | ( | enum ExceptionType | t | ) | [inline] |
{ ccaType = t; }
void neo::cca::Exception::setMessage | ( | const ::std::string & | message | ) | [inline] |
{ ccaMessage = message; }
enum ExceptionType neo::cca::Exception::ccaType [private] |
::std::string neo::cca::Exception::ccaMessage [private] |