java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArithmeticException
org.firebirdsql.decimal.DecimalInconvertibleException
- All Implemented Interfaces:
Serializable
Thrown to indicate a decimal value could not be converted to a target type (usually
BigDecimal
).
This exception should only be thrown for cases when the DecimalType
other than DecimalType.FINITE
cannot be represented in the target type. That is, if the target type does not support Infinity and/or NaN.
This exception should not be thrown for cases where the target type supports NaN, but does not support signalling NaN. In that situation, NaN should be returned.
- Author:
- Mark Rotteveel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecimalInconvertibleException
(String message, DecimalType decimalType, int signum) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DecimalInconvertibleException
-
-
Method Details
-
getDecimalType
- Returns:
- Decimal type of the value that could not be converted.
-
getSignum
public int getSignum()- Returns:
- Signum of the value that could not be converted.
-