class Exception
MyCpp::Referenced
MyCpp::Object
MyCpp::Exception
Derivatives: MyCpp::AccessException, MyCpp::IdMapper::OverflowException, MyCpp::InitializationException, MyCpp::InternalException, MyCpp::InvocationException, MyCpp::IOException

Base class for all exceptions.

Each exception object has a string message and a cause-exception associated with it.

Methods
Ref<String>
getMessage () const
Returns the message associated with this exception object.
Ref<Exception>
getCause () const
Returns the cause-exception associated with this exception object.
Ref<Exception>
clone ()
Returns an exact copy of this exception.
Exception (String *message = String::nullString (), Exception *cause = NULL)
The constructor.
getMessage

Returns the message associated with this exception object.

Ref<String> getMessage () const
getCause

Returns the cause-exception associated with this exception object.

Ref<Exception> getCause () const
clone

Returns an exact copy of this exception.

Exception object's copying constructor is resposible for creating an exact copy of the exception.

Ref<Exception> clone ()
Exception

The constructor.

Exception (String *message = String::nullString (),
           Exception *cause = NULL)
message :  A message to be associated with this exception.
cause :  A cause-exception to be associated with this exception.