If XMS detects an error while processing a call to a method, XMS throws an exception. An exception is an object that encapsulates information about the error.
std::exception | +----xms::Exception
There are different types of XMS exception, and an Exception object is just one type of exception. However, the Exception class is a superclass of the other XMS exception classes. XMS throws an Exception object in situations where none of the other types of exception are appropriate.
Method | Description |
---|---|
~Exception | Delete the exception and any linked exceptions. |
dump | Dump the exception to the specified C++ output stream as formatted text. |
getErrorCode | Get the error code. |
getErrorData | Get the free format data that provides additional information about the error. |
getErrorString | Get the string of characters that describes the error. |
getHandle | Get the handle for the internal error block that XMS creates for the exception. |
getJMSException | Get the exception code. |
getLinkedException | Get a pointer to the next exception in the chain of exceptions. |
isNull | Determine whether the Exception object is a null object. |
String getErrorString() const;
Get the string of characters that describes the error. The characters in the string are the same as those in the named constant that represents the error code.
Exception * getLinkedException() const;
Get a pointer to the next exception in the chain of exceptions.