NEOCCA bindings Specification  0.2.8
Public Member Functions | Private Attributes | List of all members
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]
Collaboration diagram for neo::cca::Exception:
Collaboration graph
[legend]

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(). More...
 
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

◆ ~Exception()

virtual neo::cca::Exception::~Exception ( )
throw (
)
inlinevirtual
55 {}

◆ Exception() [1/4]

neo::cca::Exception::Exception ( enum ExceptionType  t,
const ::std::string &  message 
)
throw (
)
inline
59  { ccaType = t; ccaMessage = message; }
::std::string ccaMessage
Definition: Exception.hh:52
enum ExceptionType ccaType
Definition: Exception.hh:51

◆ Exception() [2/4]

neo::cca::Exception::Exception ( enum ExceptionType  t)
throw (
)
inline
62  { ccaType = t; ccaMessage = ::std::string(""); }
::std::string ccaMessage
Definition: Exception.hh:52
enum ExceptionType ccaType
Definition: Exception.hh:51

◆ Exception() [3/4]

neo::cca::Exception::Exception ( )
throw (
)
inline
65  { ccaType = Nonstandard; ccaMessage = ::std::string(""); }
::std::string ccaMessage
Definition: Exception.hh:52
enum ExceptionType ccaType
Definition: Exception.hh:51
Definition: Exception.hh:19

◆ Exception() [4/4]

neo::cca::Exception::Exception ( const ::std::string &  message)
throw (
)
inline
68  { ccaType = Nonstandard; ccaMessage = message; }
::std::string ccaMessage
Definition: Exception.hh:52
enum ExceptionType ccaType
Definition: Exception.hh:51
Definition: Exception.hh:19

Member Function Documentation

◆ what()

virtual const char* neo::cca::Exception::what ( )
inlinevirtual
56 { return ccaMessage.c_str(); }
::std::string ccaMessage
Definition: Exception.hh:52

◆ getType()

enum ExceptionType neo::cca::Exception::getType ( )
inline
70 { return ccaType; }
enum ExceptionType ccaType
Definition: Exception.hh:51

◆ getMessage()

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

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

73 {return ccaMessage; }
::std::string ccaMessage
Definition: Exception.hh:52

◆ setType()

void neo::cca::Exception::setType ( enum ExceptionType  t)
inline
75 { ccaType = t; }
enum ExceptionType ccaType
Definition: Exception.hh:51

◆ setMessage()

void neo::cca::Exception::setMessage ( const ::std::string &  message)
inline
77 { ccaMessage = message; }
::std::string ccaMessage
Definition: Exception.hh:52

Member Data Documentation

◆ ccaType

enum ExceptionType neo::cca::Exception::ccaType
private

◆ ccaMessage

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

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