Exception Handling

The @exception object allows a script to access an exception in the exception handler block, and supply details about the exception. The following example illustrates how the @exception script object can be used:

# Phone Hangup Exception:

$connected = false

$exception = @exception::getMessage()

@script::log("Phone hangup exception: " & $exception)

 

Flow Control