Class DynamicMetapathException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContextAbsentDynamicMetapathException, InvalidTreatTypeDynamicMetapathException

public class DynamicMetapathException extends MetapathException
MPDY: Exceptions related to the Metapath dynamic context and dynamic evaluation.
See Also:
  • Field Details

    • DYNAMIC_CONTEXT_ABSENT

      protected static final int DYNAMIC_CONTEXT_ABSENT
      err: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_TYPE
      err:MPDY0050: It is a dynamic error if the dynamic type of the operand of a treat expression does not match the sequence type specified by the treat expression. 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 clause treat as document-node().
      See Also:
  • Constructor Details

    • DynamicMetapathException

      public DynamicMetapathException(int code, @Nullable String message)
      Constructs a new exception with the provided code, message, and no cause.
      Parameters:
      code - the error code value
      message - the exception message
    • DynamicMetapathException

      public DynamicMetapathException(int code, @Nullable String message, @Nullable Throwable cause)
      Constructs a new exception with the provided code, message, and cause.
      Parameters:
      code - the error code value
      message - the exception message
      cause - the original exception cause
    • DynamicMetapathException

      public DynamicMetapathException(int code, @Nullable Throwable cause)
      Constructs a new exception with the provided code, no message, and the cause.
      Parameters:
      code - the error code value
      cause - the original exception cause