IPB_Session interface:
HasExceptionThrown method
Description
Checks for the existence of an exception that has been thrown
but not cleared.
Syntax
|
1 |
HasExceptionThrown() |
Return Values
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 |
try<br>{<br>   session->InvokeObjectFunction(pbobj, mid, &ci);<br>   // Was PB exception thrown?<br>   if (session-> <span>HasExceptionThrown</span>())<br>   {<br>       // Handle PB exception<br>       session-> ClearException();<br>   }<br>} |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest