Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=lastExceptionMessage+-+434897048
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

lastExceptionMessage()

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Retrieves the message from of the last error exception thrown.

Retrieves the message from of the last error exception thrown.

Return Type

String

Example

Code Block
languagejs
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:

Code Block
languagejs
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 (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "basic_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.