NEOCCA bindings Specification  0.2.8
Public Member Functions | Private Attributes
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]
{}
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; }

Member Function Documentation

virtual const char* neo::cca::Exception::what ( ) [inline, virtual]
{ return ccaMessage.c_str(); }
{ 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; }

Member Data Documentation

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

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