Module dev.metaschema.core
Class RegularExpressionMetapathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.function.regex.RegularExpressionMetapathException
- All Implemented Interfaces:
Serializable
MPRX: Exceptions related to regular expression processing in Metapath
functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:MPRX0002: Raised by regular expression functions such as fn:matches and fn:replace if the regular expression is syntactically invalid.static final interr:MPRX0001: Raised by regular expression functions such as fn:matches and fn:replace if the regular expression flags contain a character other than i, m, q, s, or x.static final interr:MPRX0004: Raised by fn:replace to report errors in the replacement string.static final interr:MPRX0003: For functions such as fn:replace and fn:tokenize, raises an error if the supplied regular expression is capable of matching a zero length string. -
Constructor Summary
ConstructorsConstructorDescriptionRegularExpressionMetapathException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.RegularExpressionMetapathException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.RegularExpressionMetapathException(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
-
INVALID_FLAG
public static final int INVALID_FLAGerr:MPRX0001: Raised by regular expression functions such as fn:matches and fn:replace if the regular expression flags contain a character other than i, m, q, s, or x.- See Also:
-
INVALID_EXPRESSION
public static final int INVALID_EXPRESSIONerr:MPRX0002: Raised by regular expression functions such as fn:matches and fn:replace if the regular expression is syntactically invalid.- See Also:
-
MATCHES_ZERO_LENGTH_STRING
public static final int MATCHES_ZERO_LENGTH_STRINGerr:MPRX0003: For functions such as fn:replace and fn:tokenize, raises an error if the supplied regular expression is capable of matching a zero length string.- See Also:
-
INVALID_REPLACEMENT_STRING
public static final int INVALID_REPLACEMENT_STRINGerr:MPRX0004: Raised by fn:replace to report errors in the replacement string.- See Also:
-
-
Constructor Details
-
RegularExpressionMetapathException
public RegularExpressionMetapathException(int code, @Nullable String message, @Nullable Throwable cause) Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
RegularExpressionMetapathException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
RegularExpressionMetapathException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-