Module dev.metaschema.core
Class JsonFunctionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.function.FunctionMetapathError
dev.metaschema.core.metapath.function.JsonFunctionException
- All Implemented Interfaces:
Serializable
FOJS: Exceptions related to JSON function operations in XPath.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:FOJS0003: This error is raised if the input contains duplicate keys, when the chosen policy is to reject duplicates.static final interr:FOJS0005: This error is raised if the $options map contains an invalid entry. -
Constructor Summary
ConstructorsConstructorDescriptionJsonFunctionException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.JsonFunctionException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.JsonFunctionException(int code, Throwable cause) Constructs a new exception with the providedcode, no message, and thecause. -
Method Summary
Methods inherited from class dev.metaschema.core.metapath.MetapathException
getErrorCode, getEvaluationStack, getMessage, getMessageText, registerEvaluationContext, registerEvaluationContext, registerEvaluationContextMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DUPLICATE_KEYS
public static final int DUPLICATE_KEYSerr:FOJS0003: This error is raised if the input contains duplicate keys, when the chosen policy is to reject duplicates.- See Also:
-
INVALID_OPTION
public static final int INVALID_OPTIONerr:FOJS0005: This error is raised if the $options map contains an invalid entry.- See Also:
-
-
Constructor Details
-
JsonFunctionException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
JsonFunctionException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
JsonFunctionException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-