Class DateTimeFunctionException

All Implemented Interfaces:
Serializable

public class DateTimeFunctionException extends FunctionMetapathError
FODT: Exceptions related to Date/Time/Duration errors.
See Also:
  • Field Details

    • DATE_TIME_OVERFLOW_UNDERFLOW_ERROR

      public static final int DATE_TIME_OVERFLOW_UNDERFLOW_ERROR
      err:FODT0001: Raised when casting to date/time datatypes, or performing arithmetic with date/time values, if arithmetic overflow or underflow occurs.
      See Also:
    • DURATION_OVERFLOW_UNDERFLOW_ERROR

      public static final int DURATION_OVERFLOW_UNDERFLOW_ERROR
      err:FODT0002: Raised when casting to duration datatypes, or performing arithmetic with duration values, if arithmetic overflow or underflow occurs.
      See Also:
    • INVALID_TIME_ZONE_VALUE_ERROR

      public static final int INVALID_TIME_ZONE_VALUE_ERROR
      err:FODT0003: Raised by adjust-date-to-timezone and related functions if the supplied timezone is invalid.
      See Also:
  • Constructor Details

    • DateTimeFunctionException

      public DateTimeFunctionException(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
    • DateTimeFunctionException

      public DateTimeFunctionException(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
    • DateTimeFunctionException

      public DateTimeFunctionException(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