The methods documented in this chapter operate on objects of the CollaborationException class. These objects represent collaboration exceptions. Exceptions might occur during the execution of a collaboration object. The scenario can catch and handle these exceptions. There are two categories of exceptions that a collaboration can handle:
Business process exceptions arise from code that uses the collaboration API methods. For example, a business process exception can occur when the scenario sets the value of a business object attribute, sends a request to a connector, and so on.
Java exceptions result from your own code that uses native Java methods. The collaboration run-time environment catches and handles the Java exceptions arising from its own code.
Table 93 lists the methods that this chapter describes.
Method | Description | Page |
---|---|---|
getMessage() | Retrieve the message text from the current exception. | getMessage() |
getMsgNumber() | Retrieve the message number of the text associated with the current exception. | getMsgNumber() |
getSubType() | Retrieve the subtype of an exception. | getSubType() |
getType() | Retrieve the collaboration exception type. | getType() |
toString() | Write exception information to a string. | toString() |