Inheritance diagram for sword::Exception:

Public Methods | |
| Exception () | |
| Builds an exception using the message stream 'estream'. | |
| Exception (const std::string &message) | |
| Builds an exception using the provided message. | |
| Exception (const char *message) | |
| Builds an exception using the provided message. | |
| virtual const char * | what () const throw () |
| Returns the exception message (implements std::exception). | |
| const char * | file () const throw () |
| word | line () const throw () |
When you build an exception, the content of the stream "sword::estream" is automatically used as the message, and then the stream is cleared. The exception message stream is thread-local, so different exception messages can be built simultaneously in different threads.
sword::estream << "The error context is : value=" << value;
throw sword::Exception();
You can also define your own exception classes by deriving from sword::Exception:
class MyException : public sword::Exception {};
|
|
Builds an exception using the message stream 'estream'.
|
|
|
Builds an exception using the provided message.
|
|
|
Builds an exception using the provided message.
|
|
|
Returns the exception message (implements std::exception).
|
1.3-rc2