NumericException - return the exception string of an event
|
Calling Sequence
|
|
NumericException(event)
|
|
Parameters
|
|
event
|
-
|
symbol; represents one of six numeric events
|
|
|
|
|
Description
|
|
•
|
The NumericException(event) function returns the exception string associated with event.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
MyHandler := proc( f, ops, defVal )
if NumericEventLocation = 'MyProc' then
error NumericException( 'division_by_zero' );
else
NumericStatus( 'division_by_zero' = false );
defVal;
end if;
end proc:
|
>
|
|
| (2) |
>
|
MyProc := proc(a,b) a/b; end proc:
|
>
|
|
| (3) |
>
|
|
|
|
Download Help Document
Was this information helpful?