$getException.getMessage

Returns the message an exception.
Syntax
    $getException.getMessage{[index]?}
Documentation$getException.getMessage:
Returns the message text of an exception. The optional parameter 1 specifies the index of the exception and defaults to 0 which is the index of the last exception.
    Paramter:
      1 - exception index; negative integer, optional
    Returns:
      Exception dump.
    Throws:
      IllegalArgumentException, NumberFormatException
Examples
$try{ $try{$throw{app.test.TestException1}{Test exception nr. 1}}{} $throw{app.test.TestException2}{Test exception nr. 2} } {

Script exception dump of exception nr. 1

$getException.dump{-2}

Internal java exception dump of exception nr. 1

$getException.dump{-3}

Script exception dump of exception nr. 2

$getException.dump{}

Internal java exception dump of exception nr. 2

$getException.dump{-1}

Split information about the last exception

Class: $getException.getClass{}
Message: $getException.getMessage{}
Stacktrace:
$getException.getStackTrace{}
}
GroupCode
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 1