Throw()

Throws an exception based on a given criteria

Usage

UNKNOWN = Throw( type, message, detail, errorcode, extendedinfo )
Argument Summary
type Defaults to Application [optional]
message The message of the exception [optional]
detail The full detail of the exception [optional]
errorcode Any code associated with this exception [optional]
extendedinfo Any additional information [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

Throw(
   type=?, 
   message=?, 
   detail=?, 
   errorcode=?, 
   extendedinfo=?
);

Supports passing parameters as a structure using ArgumentCollection:

Throw( ArgumentCollection={
   type : ?, 
   message : ?, 
   detail : ?, 
   errorcode : ?, 
   extendedinfo : ?
} );