Module dev.metaschema.core
Class DateTimeFunctionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.function.FunctionMetapathError
dev.metaschema.core.metapath.function.DateTimeFunctionException
- All Implemented Interfaces:
Serializable
FODT: Exceptions related to Date/Time/Duration errors.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:FODT0001: Raised when casting to date/time datatypes, or performing arithmetic with date/time values, if arithmetic overflow or underflow occurs.static final interr:FODT0002: Raised when casting to duration datatypes, or performing arithmetic with duration values, if arithmetic overflow or underflow occurs.static final interr:FODT0003: Raised by adjust-date-to-timezone and related functions if the supplied timezone is invalid. -
Constructor Summary
ConstructorsConstructorDescriptionDateTimeFunctionException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.DateTimeFunctionException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.DateTimeFunctionException(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
-
DATE_TIME_OVERFLOW_UNDERFLOW_ERROR
public static final int DATE_TIME_OVERFLOW_UNDERFLOW_ERRORerr: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_ERRORerr: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_ERRORerr:FODT0003: Raised by adjust-date-to-timezone and related functions if the supplied timezone is invalid.- See Also:
-
-
Constructor Details
-
DateTimeFunctionException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
DateTimeFunctionException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
DateTimeFunctionException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-