HasExceptionThrown
Description
Checks for the existence of an exception that has been thrown but
not cleared.
Syntax
|
1 |
HasExceptionThrown() |
Return value
pbboolean.
Returns true if a PowerBuilder exception has been thrown but not
cleared.
Examples
This example tests whether an exception has been thrown so it can
be handled and cleared:
|
1 2 3 4 5 6 7 8 9 10 |
try { session->InvokeObjectFunction(pbobj, mid, &ci); // Was PB exception thrown if (session-> HasExceptionThrown()) { // Handle PB exception session-> ClearException(); } } |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest