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. | |
| virtual | ~Exception () throw () |
| Destructor. | |
| String | getMessage () const throw () |
| Get the message associated with the exception. | |
| virtual const char * | what () const throw () |
| Get the message associated with the exception. | |
| virtual void | write (std::ostream &stream) const |
| Write a textual representation of the exception to a stream. | |
| String | toString () const |
| Get a textual representation of the exception as a String. | |
Protected Attributes | |
| String | _message |
| The cause message. | |
A general-purpose exception.
| Exception | ( | String | message = String::empty |
) |
Construct a new Exception with an optional cause message.
| virtual ~Exception | ( | ) | throw () [inline, virtual] |
Destructor.
| String getMessage | ( | ) | const throw () [inline] |
Get the message associated with the exception.
| String toString | ( | ) | const [inline] |
Get a textual representation of the exception as a String.
| virtual const char* what | ( | ) | const throw () [inline, virtual] |
Get the message associated with the exception.
| virtual void write | ( | std::ostream & | stream | ) | const [inline, virtual] |
Write a textual representation of the exception to a stream.
Reimplemented in DataFormatException, HostNotFoundException, InterruptedException, InvalidArgumentException, IOException, EOFException, TimeoutException, PathNotFoundException, JavaException, JavaSignatureException, JavaClassNotFoundException, JavaMethodNotFoundException, JavaFieldNotFoundException, JavaInstantiationException, JavaInvocationException, JavaFieldAccessException, JavaArrayAccessException, JavaOutOfMemoryException, JavaMonitorException, JavaThreadException, JavaNotAttachedException, ObjectPoolException, ParseException, SocketException, SocketIOException, ConnectionRefusedException, AddressInUseException, SQLException, SystemException, and UnsupportedOperationException.
1.6.3