23 #ifndef __ccxx_Exception_hxx 24 #define __ccxx_Exception_hxx 55 virtual const char* what()
const throw();
58 inline virtual void write(std::ostream& stream)
const 59 { _write(stream,
"Exception"); }
64 std::ostringstream ss;
66 return String(ss.str().c_str());
72 void _write(std::ostream& stream,
const char* name)
const;
89 #endif // __ccxx_Exception_hxx static const String empty
The empty string.
Definition: String.h++:1134
String getMessage() const
Get the message associated with the exception.
Definition: Exception.h++:51
String _message
The cause message.
Definition: Exception.h++:76
virtual ~Exception()
Destructor.
Definition: Exception.h++:47
std::ostream & operator<<(std::ostream &stream, const BitSet &bs)
Definition: BitSet.h++:383
CString _what
Definition: Exception.h++:77
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
An implicitly shared, reference-counted container for an immutable, NUL-terminated C string...
Definition: CString.h++:39
Definition: AllocationMap.c++:25
virtual void write(std::ostream &stream) const
Write a textual representation of the exception to a stream.
Definition: Exception.h++:58
A general-purpose exception.
Definition: Exception.h++:39
String toString() const
Get a textual representation of the exception as a String.
Definition: Exception.h++:62