The Collaboration API provides an exception object to represent an exception that occurs in a collaboration. As Table 48 shows, this exception object contains information about the condition that caused the exception.
Exception Type |
Exception Subtype |
Message |
Message Number |
This exception object is an instance of the CollaborationException class, which is an extension of the Java(TM) Exception class. Table 49 shows the accessor methods that the CollaborationException class provides to obtain information in the exception object.
Member | Accessor method |
---|---|
Exception type | getType() |
Exception subtype | getSubType() |
Message text | getMessage(), toString() |
Message number | getMsgNumber() |
To identify the cause of the collaboration exception, the exception object includes one of the exception types listed in Table 50. Exception types are string values for which Java static constants have been declared.
Some of these exception types have numerous situations that can cause them. For such exception types, the exception object often includes an exception subtype, which provides additional information about the cause of the exception. The two main exception types that use exception subtypes are JavaException and ServiceCallException. For more information, see the description of getSubType().