Package org.firebirdsql.extern.decimal
Class DecimalInconvertibleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.ArithmeticException
-
- org.firebirdsql.extern.decimal.DecimalInconvertibleException
-
- All Implemented Interfaces:
java.io.Serializable
public class DecimalInconvertibleException extends java.lang.ArithmeticExceptionThrown to indicate a decimal value could not be converted to a target type (usuallyBigDecimal).This exception should only be thrown for cases when the
DecimalTypeother thanDecimalType.FINITEcannot 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecimalInconvertibleException(java.lang.String message, DecimalType decimalType, int signum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecimalTypegetDecimalType()intgetSignum()
-
-
-
Constructor Detail
-
DecimalInconvertibleException
public DecimalInconvertibleException(java.lang.String message, DecimalType decimalType, int signum)
-
-
Method Detail
-
getDecimalType
public DecimalType 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.
-
-