GetException

PowerBuilder Native Interface

IPB_Session interface:

GetException method

Description

Obtains the current thrown exception object.

Syntax

GetException ()

Return Values

pbobject.

Examples

This code gets the current exception object, clears the exception, and gets the class of the exception object:

pbclass cls;
pbobject  ex;
...
ex = session-> GetException();
session-> ClearException();
cls = session-> GetClass(ex);

See Also