public class ScriptThrownException extends ScriptException
| Constructor and Description |
|---|
ScriptThrownException(Exception e,
Object value)
Constructs a new exception with the specified value and cause.
|
ScriptThrownException(String message,
Object value)
Constructs a new exception with the specified value and detail message.
|
ScriptThrownException(String message,
String fileName,
int lineNumber,
int columnNumber,
Object value) |
ScriptThrownException(String message,
String fileName,
int lineNumber,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue()
Returns the value that was thrown from the script.
|
ResourceException |
toResourceException(int defaultCode,
String defaultMsg)
Converts the script exception to an appropriate json resource exception.
|
String |
toString() |
getColumnNumber, getFileName, getLineNumber, getMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ScriptThrownException(String message, Object value)
public ScriptThrownException(Exception e, Object value)
public ScriptThrownException(String message, String fileName, int lineNumber, Object value)
public Object getValue()
public ResourceException toResourceException(int defaultCode, String defaultMsg)
defaultMsg - a default message to use if no explicit message is set, or
null if value toString shoudl be used insteadJsonValueException - when value can not be converted to ResourceExceptionCopyright © 2025 Open Identity Platform Community. All rights reserved.