Class Try |
The singleton Try class implements the basic try structure.
Details |
Constructor |
Get access to the singleton Try object. Once you have access to it you can call call{} and catch() to perform exception handling.
Methods: |
an exception or the result of evaluating the
try-clause |
if the try-clause fails |
A PDCO (makes a co-expression out of its argument) that evaluates the argument in an environment supporting Exceptions.
Array of co-expressions when called as PDCO.
the matched exception |
if no match |
Catch an exception. Succeeds if the last thrown Exception is an instance of the named Exception. A null argument defaults to "exception::Exception".
name of exception to catch last thrown exception. Only valid when used after a
throw(). Returns &null if no exception throws |
x | possible Exception |
eName | subclass of Exception that x must match |
x if x is an Exception |
if x is not an Exception |
outFile | -- output stream (defaults to &errout) |
Display the exception thrown from this try clause.
Throw an exception. Not called directly, but called indirectly by Exception.throw().
Exception to throw.Fields: |