java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.DynamicMetapathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContextAbsentDynamicMetapathException,InvalidTreatTypeDynamicMetapathException
MPDY: Exceptions related to the Metapath dynamic context and dynamic
evaluation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final interr:MPDY0002: It is a dynamic error if evaluation of an expression relies on some part of the dynamic context that is absent.protected static final interr:MPDY0050: It is a dynamic error if the dynamic type of the operand of atreatexpression does not match the sequence type specified by thetreatexpression. -
Constructor Summary
ConstructorsConstructorDescriptionDynamicMetapathException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.DynamicMetapathException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.DynamicMetapathException(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
-
DYNAMIC_CONTEXT_ABSENT
protected static final int DYNAMIC_CONTEXT_ABSENTerr:MPDY0002: It is a dynamic error if evaluation of an expression relies on some part of the dynamic context that is absent.- See Also:
-
TREAT_DOES_NOT_MATCH_TYPE
protected static final int TREAT_DOES_NOT_MATCH_TYPEerr:MPDY0050: It is a dynamic error if the dynamic type of the operand of atreatexpression does not match the sequence type specified by thetreatexpression. This error might also be raised by a path expression beginning with "/" or "//" if the context node is not in a tree that is rooted at a document node. This is because a leading "/" or "//" in a path expression is an abbreviation for an initial step that includes the clausetreat as document-node().- See Also:
-
-
Constructor Details
-
DynamicMetapathException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
DynamicMetapathException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
DynamicMetapathException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-