Get Message

Retrieves the message text from the exception object.

Inputs

Collaboration exception
The collaboration exception (a CollaborationException object).

Output

Returns a String that contains the message text from the exception object.

Notes

The Get Message function block is useful for extracting the exception text from the currentException system variable. This exception text can be included in a call to one of the Raise Collaboration Exception function blocks to ensure that the reason for the exception is raised up to the next higher level of execution.

Note:
You can use the To String function block to retrieve the exception type and exception text from the current exception as a formatted string.

Related Information

This function block is based on the collaborationException.getMessage() method. For more information, see getMessage().

Copyright IBM Corp. 2004