Class CastFunctionException

All Implemented Interfaces:
Serializable

public class CastFunctionException extends FunctionMetapathError
FOCA: Exceptions related to type casting.
See Also:
  • Field Details

    • INVALID_LEXICAL_VALUE

      public static final int INVALID_LEXICAL_VALUE
      err:FOCA0002: Raised by fn:resolve-QName and fn:QName when a supplied value does not have the lexical form of a QName or URI respectively; and when casting to decimal, if the supplied value is NaN or Infinity.
      See Also:
    • INPUT_VALUE_TOO_LARGE

      public static final int INPUT_VALUE_TOO_LARGE
      err:FOCA0003: Raised when casting to xs:integer if the supplied value exceeds the implementation-defined limits for the datatype.
      See Also:
  • Constructor Details

    • CastFunctionException

      public CastFunctionException(int code, @NonNull IAnyAtomicItem item, String message)
      Constructs a new exception with the provided code, item, and no cause.
      Parameters:
      code - the error code value
      item - the item the exception applies to
      message - the exception message text
    • CastFunctionException

      public CastFunctionException(int code, @NonNull IAnyAtomicItem item, String message, Throwable cause)
      Constructs a new exception with the provided code, item, and cause.
      Parameters:
      code - the error code value
      item - the item the exception applies to
      message - the exception message text
      cause - the original exception cause
  • Method Details

    • getItem

      @NonNull public IAnyAtomicItem getItem()
      Get the item associated with the exception.
      Returns:
      the associated item