public class Errors extends Object
ErrorException
s.Modifier and Type | Field and Description |
---|---|
static String |
AMBIGUOUS_NAME_ERROR
Error thrown when a given name is ambiguous
|
static String |
ARITHMETIC_ERROR
Arithmetic error.
|
static String |
BINARY_DATA_ERROR
Error thrown when a binary data can't be retrieved.
|
static String |
DOES_NOT_EXIST_ERROR
Does not exist error.
|
static String |
FORMAT_ERROR
Format error.
|
static String |
INCOMPATIBLE_TYPE_ERROR
Wrong type of a value.
|
static String |
INCORRECT_PATHNAME_ERROR
Incorrect pathname error is used by splitPathname function.
|
static String |
INVALID_EXPRESSION_ERROR
Error thrown when an expression is not valid (e.g.
|
static String |
INVALID_REFERENCE_ERROR
Invalid reference error.
|
static String |
INVALID_TYPE_ERROR
Error thrown when a type string is not valid (e.g.
|
static String |
JSON_PROCESSING_ERROR
Error thrown when JSON processing fails.
|
static String |
MERGE_EVALUATION_ERROR
Error thrown when an evaluation cannot be merged.
|
static String |
METHOD_ACCESS_ERROR
Error thrown when execution of Java function fails
|
static String |
MODEL_INSTANTIATION_ERROR
Error thrown when a model cannot be instantiated.
|
static String |
MODEL_INTERPRETATION_ERROR
Error thrown when a model cannot be interpreted.
|
static String |
NO_EXTERNAL_RECORD_PROVIDER
Error thrown in query function.
|
static String |
NO_SUCH_PROPERTY_ERROR
Missing property error.
|
static String |
NULL_PARAMETER_ERROR
A mandatory parameter has null value.
|
static String |
OUT_OF_BOUNDS_ERROR
Out of bounds error.
|
static String |
READ_ONLY_ACCESS_ERROR
Error thrown when writing to a read only variable or record
|
static String |
RECORD_NOT_FOUND_ERROR
Record not found error.
|
static String |
REFERENCE_NOT_FOUND_ERROR
Referenced value not found error.
|
static String |
SAVE_DOCUMENT_ERROR
Error thrown when a Document cannot be saved.
|
static String |
SAVE_TODO_ERROR
Error thrown when a To-do cannot be saved.
|
static String |
SENDING_ERROR
Error thrown when a message cannot be sent.
|
static String |
SENDING_SIGNAL_ERROR
Error thrown when a message cannot be sent.
|
static String |
SYSTEM_RECORD_DELETE_ERROR
System record delete error
|
static String |
VARIABLE_NOT_FOUND_ERROR
Error thrown when a variabled is not found in the context.
|
static String |
WRONG_SIZE_ERROR
Wrong size error.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
checkParameterNotNull(T param,
String paramName)
Throws a null parameter error if the
param is null. |
static <T> T |
checkParameterNotNull(T param,
String paramName,
InterpreterStackTrace stackTrace)
Throws a null parameter error if the
param is null. |
static ErrorException |
createNullParameterError(Expression expression,
InterpreterStackTrace stackTrace)
Creates a null parameter error with a correct message
and an expression context information.
|
static String[] |
getStackTraceInfo(InterpreterStackTrace stackTrace)
Returns a stack trace info from a given stack trace.
|
public static final String NULL_PARAMETER_ERROR
public static final String INCOMPATIBLE_TYPE_ERROR
public static final String ARITHMETIC_ERROR
public static final String OUT_OF_BOUNDS_ERROR
public static final String FORMAT_ERROR
public static final String WRONG_SIZE_ERROR
public static final String NO_SUCH_PROPERTY_ERROR
public static final String DOES_NOT_EXIST_ERROR
public static final String RECORD_NOT_FOUND_ERROR
public static final String SYSTEM_RECORD_DELETE_ERROR
public static final String REFERENCE_NOT_FOUND_ERROR
public static final String INVALID_REFERENCE_ERROR
public static final String MODEL_INSTANTIATION_ERROR
public static final String MODEL_INTERPRETATION_ERROR
public static final String SENDING_ERROR
public static final String SENDING_SIGNAL_ERROR
public static final String MERGE_EVALUATION_ERROR
public static final String BINARY_DATA_ERROR
public static final String READ_ONLY_ACCESS_ERROR
public static final String INCORRECT_PATHNAME_ERROR
public static final String NO_EXTERNAL_RECORD_PROVIDER
public static final String AMBIGUOUS_NAME_ERROR
public static final String JSON_PROCESSING_ERROR
public static final String METHOD_ACCESS_ERROR
public static final String SAVE_TODO_ERROR
public static final String SAVE_DOCUMENT_ERROR
public static final String VARIABLE_NOT_FOUND_ERROR
public static final String INVALID_TYPE_ERROR
public static final String INVALID_EXPRESSION_ERROR
public static <T> T checkParameterNotNull(T param, String paramName) throws ErrorException
param
is null.T
- param
- paramName
- param
if not nullErrorException
public static <T> T checkParameterNotNull(T param, String paramName, InterpreterStackTrace stackTrace) throws ErrorException
param
is null.T
- param
- paramName
- stackTrace
- a stack traceparam
if not nullErrorException
public static ErrorException createNullParameterError(Expression expression, InterpreterStackTrace stackTrace)
expression
- stackTrace
- ErrorException
with a correct message and context informationpublic static String[] getStackTraceInfo(InterpreterStackTrace stackTrace)
stackTrace
- a stack trace, may be null
null
if the given stack
trace is null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.