neo::cca::Exception Class Reference

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>

Inheritance diagram for neo::cca::Exception:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

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.


Constructor & Destructor Documentation

virtual neo::cca::Exception::~Exception (  )  throw () [inline, virtual]

00055 {}

neo::cca::Exception::Exception ( enum ExceptionType  t,
const ::std::string &  message 
) throw () [inline]

00059         { ccaType = t; ccaMessage = message; }

neo::cca::Exception::Exception ( enum ExceptionType  t  )  throw () [inline]

00062         { ccaType = t; ccaMessage = ::std::string(""); }

neo::cca::Exception::Exception (  )  throw () [inline]

00065         { ccaType = Nonstandard; ccaMessage = ::std::string(""); }

neo::cca::Exception::Exception ( const ::std::string &  message  )  throw () [inline]

00068         { ccaType = Nonstandard; ccaMessage = message; }


Member Function Documentation

virtual const char* neo::cca::Exception::what (  )  [inline, virtual]

00056 { return ccaMessage.c_str(); }

enum ExceptionType neo::cca::Exception::getType (  )  [inline]

00070 { return ccaType; }

::std::string neo::cca::Exception::getMessage (  )  [inline]

string form of std::exception::what().

00073 {return ccaMessage; }

void neo::cca::Exception::setType ( enum ExceptionType  t  )  [inline]

00075 { ccaType = t; }

void neo::cca::Exception::setMessage ( const ::std::string &  message  )  [inline]

00077 { ccaMessage = message; }


Member Data Documentation

::std::string neo::cca::Exception::ccaMessage [private]


The documentation for this class was generated from the following file:

Generated on Thu Mar 17 04:13:29 2011 for NEOCCA bindings Specification by  doxygen 1.5.9