Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | lastExceptionMessage() | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns Retrieves the message of a Java class exception when an error is from of the last error exception thrown. |
Retrieves the message from of the last error exception thrown.
Return Type
String
Example
Code Block |
---|
|
try {
runAs("user_that_does_not_exist");
} catch string err {
// will not catch error here
} catch {
runnerLog("Class:" + lastExceptionClass());
runnerLog("Message:" + lastExceptionMessage());
} |
Example Output
...
Code Block |
---|
|
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) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "basic_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|