libcommonc++
0.7
|
A general-purpose exception. More...
#include <Exception.h++>
Public Member Functions | |
Exception (String message=String::empty) | |
Construct a new Exception with an optional cause message. More... | |
virtual | ~Exception () throw () |
Destructor. More... | |
String | getMessage () const |
Get the message associated with the exception. More... | |
virtual const char * | what () const throw () |
Get the message associated with the exception. More... | |
virtual void | write (std::ostream &stream) const |
Write a textual representation of the exception to a stream. More... | |
String | toString () const |
Get a textual representation of the exception as a String. More... | |
Protected Attributes | |
String | _message |
The cause message. More... | |
CString | _what |
A general-purpose exception.
Exception | ( | String | message = String::empty | ) |
Construct a new Exception with an optional cause message.
|
inlinevirtual |
Destructor.
|
inline |
Get the message associated with the exception.
|
virtual |
Get the message associated with the exception.
|
inlinevirtual |
Write a textual representation of the exception to a stream.
Reimplemented in JavaClassLoaderException, JavaNotAttachedException, JavaThreadException, JavaMonitorException, JavaOutOfMemoryException, JavaArrayAccessException, JavaFieldAccessException, JavaInvocationException, JavaInstantiationException, JavaFieldNotFoundException, AddressInUseException, PathNotFoundException, JavaMethodNotFoundException, ConnectionRefusedException, TimeoutException, JavaClassNotFoundException, EOFException, SocketIOException, JavaSignatureException, ParseException, HostNotFoundException, InvalidArgumentException, SQLException, UnsupportedOperationException, IOException, ObjectPoolException, SocketException, DataFormatException, InterruptedException, JavaException, and SystemException.
|
protected |
The cause message.
|
mutableprotected |