java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.StaticMetapathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidMetapathGrammarException
MPST: Exceptions related to the Metapath static context and static
evaluation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:MPST0010: An implementation that does not support the namespace axis must raise a static error if it encounters a reference to the namespace axis and XPath 1.0 compatibility mode is false.static final interr:MPST0134: The namespace axis is not supported.static final interr:MPST0080: It is a static error if the target type of a cast or castable expression is meta:anyAtomicType.static final interr:MQST0052: The type named in a cast or castable expression must be the name of a type defined in the in-scope schema types, and the type must be simple.protected static final interr:MPST0003: It is a static error if an expression is not a valid instance of the Metapath grammar.static final interr:MQST0070: A static error is raised if any of the following conditions is statically detected in any expression.static final interr:MPST0017: It is a static error if the expanded QName and number of arguments in a static function call do not match the name and arity of a function signature in the static context.static final interr:MPST0008: It is a static error if an expression refers to an element name, attribute name, schema type name, namespace prefix, or variable name that is not defined in the static context, except for an ElementName in an ElementTest or an AttributeName in an AttributeTest.static final interr:MPST0070: It is a static error if a QName used in an expression contains a namespace prefix that cannot be expanded into a namespace URI by using the statically known namespaces.static final interr:MPST0051: It is a static error if the expanded QName for an AtomicOrUnionType in a SequenceType is not defined in the in-scope schema types as a generalized atomic type. -
Constructor Summary
ConstructorsConstructorDescriptionStaticMetapathException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.StaticMetapathException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.StaticMetapathException(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_PATH_GRAMMAR
protected static final int INVALID_PATH_GRAMMARerr:MPST0003: It is a static error if an expression is not a valid instance of the Metapath grammar.- See Also:
-
NOT_DEFINED
public static final int NOT_DEFINEDerr:MPST0008: It is a static error if an expression refers to an element name, attribute name, schema type name, namespace prefix, or variable name that is not defined in the static context, except for an ElementName in an ElementTest or an AttributeName in an AttributeTest.- See Also:
-
AXIS_NAMESPACE_UNSUPPORTED
public static final int AXIS_NAMESPACE_UNSUPPORTEDerr:MPST0010: An implementation that does not support the namespace axis must raise a static error if it encounters a reference to the namespace axis and XPath 1.0 compatibility mode is false.- See Also:
-
NO_FUNCTION_MATCH
public static final int NO_FUNCTION_MATCHerr:MPST0017: It is a static error if the expanded QName and number of arguments in a static function call do not match the name and arity of a function signature in the static context.- See Also:
-
UNKNOWN_TYPE
public static final int UNKNOWN_TYPEerr:MPST0051: It is a static error if the expanded QName for an AtomicOrUnionType in a SequenceType is not defined in the in-scope schema types as a generalized atomic type.- See Also:
-
CAST_UNKNOWN_TYPE
public static final int CAST_UNKNOWN_TYPEerr:MQST0052: The type named in a cast or castable expression must be the name of a type defined in the in-scope schema types, and the type must be simple.- See Also:
-
NAMESPACE_MISUSE
public static final int NAMESPACE_MISUSEerr:MQST0070: A static error is raised if any of the following conditions is statically detected in any expression.- The prefix xml is bound to some namespace URI other than http://www.w3.org/XML/1998/namespace.
- A prefix other than xml is bound to the namespace URI http://www.w3.org/XML/1998/namespace.
- The prefix xmlns is bound to any namespace URI.
- A prefix other than xmlns is bound to the namespace URI http://www.w3.org/2000/xmlns/.
- See Also:
-
CAST_ANY_ATOMIC
public static final int CAST_ANY_ATOMICerr:MPST0080: It is a static error if the target type of a cast or castable expression is meta:anyAtomicType.- See Also:
-
PREFIX_NOT_EXPANDABLE
public static final int PREFIX_NOT_EXPANDABLEerr:MPST0070: It is a static error if a QName used in an expression contains a namespace prefix that cannot be expanded into a namespace URI by using the statically known namespaces.- See Also:
-
AXIS_NAMESPACE_UNSUPPORTED_IN_TEST
public static final int AXIS_NAMESPACE_UNSUPPORTED_IN_TESTerr:MPST0134: The namespace axis is not supported.- See Also:
-
-
Constructor Details
-
StaticMetapathException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
StaticMetapathException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
StaticMetapathException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-