Module dev.metaschema.core
Class ArithmeticFunctionException
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.ArithmeticFunctionException
- All Implemented Interfaces:
Serializable
Represents an error that occurred while performing mathematical operations.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:FOAR0001: This error is raised whenever an attempt is made to divide by zero.static final StringError message associated withDIVISION_BY_ZERO.static final interr:FOAR0002: This error is raised whenever numeric operations result in an overflow or underflow. -
Constructor Summary
ConstructorsConstructorDescriptionArithmeticFunctionException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.ArithmeticFunctionException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.ArithmeticFunctionException(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
-
DIVISION_BY_ZERO
public static final int DIVISION_BY_ZEROerr:FOAR0001: This error is raised whenever an attempt is made to divide by zero.- See Also:
-
OVERFLOW_UNDERFLOW_ERROR
public static final int OVERFLOW_UNDERFLOW_ERRORerr:FOAR0002: This error is raised whenever numeric operations result in an overflow or underflow.- See Also:
-
DIVISION_BY_ZERO_MESSAGE
Error message associated withDIVISION_BY_ZERO.- See Also:
-
-
Constructor Details
-
ArithmeticFunctionException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
ArithmeticFunctionException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
ArithmeticFunctionException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-