Class InvalidArgumentFunctionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidValueForCastFunctionException

public class InvalidArgumentFunctionException extends FunctionMetapathError
FORG: Exceptions related to argument types.
See Also:
  • Field Details

    • INVALID_VALUE_FOR_CAST

      public static final int INVALID_VALUE_FOR_CAST
      err:FORG0001: A general-purpose error raised when casting, if a cast between two datatypes is allowed in principle, but the supplied value cannot be converted: for example when attempting to cast the string "nine" to an integer.
      See Also:
    • INVALID_ARGUMENT_TO_RESOLVE_URI

      public static final int INVALID_ARGUMENT_TO_RESOLVE_URI
      err:FORG0002: Raised when either argument to fn:resolve-uri is not a valid URI/IRI.
      See Also:
    • INVALID_ARGUMENT_ZERO_OR_ONE

      public static final int INVALID_ARGUMENT_ZERO_OR_ONE
      err:FORG0003: Raised by fn:zero-or-one if the supplied value contains more than one item.
      See Also:
    • INVALID_ARGUMENT_ONE_OR_MORE

      public static final int INVALID_ARGUMENT_ONE_OR_MORE
      err:FORG0005: Raised by fn:one-or-more if the supplied value is an empty sequence.
      See Also:
    • INVALID_ARGUMENT_EXACTLY_ONE

      public static final int INVALID_ARGUMENT_EXACTLY_ONE
      err:FORG0005: Raised by fn:exactly-one if the supplied value is not a singleton sequence.
      See Also:
    • INVALID_ARGUMENT_TYPE

      public static final int INVALID_ARGUMENT_TYPE
      err:FORG0006: Raised by functions such as fn:max, fn:min, fn:avg, fn:sum if the supplied sequence contains values inappropriate to this function.
      See Also:
    • DATE_TIME_INCONSISTENT_TIMEZONE

      public static final int DATE_TIME_INCONSISTENT_TIMEZONE
      err:FORG0008: Raised by fn:dateTime if the two arguments both have timezones and the timezones are different.
      See Also:
  • Constructor Details

    • InvalidArgumentFunctionException

      public InvalidArgumentFunctionException(int code, String message, 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
    • InvalidArgumentFunctionException

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

      public InvalidArgumentFunctionException(int code, 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