Skip to end of banner
Go to start of banner

lastExceptionMessage

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Description

Retrieves the message from of the last error exception thrown.

Return Type

String

Example

try {
    runAs("user_that_does_not_exist");
} catch string err {
     // will not catch error here
} catch {
    runnerLog("Class:" + lastExceptionClass());
     runnerLog("Message:" + lastExceptionMessage());
}

Output is contents of last error message similar to below:

Class: com.keplerrominfo.sil.lang.SILInfoException
Message: [SIL Error on line: 2, column: 9] User user_that_does_not_exist does not exist.

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels