Package org.apfloat.internal
Class RadixMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apfloat.ApfloatRuntimeException
-
- org.apfloat.internal.ApfloatInternalException
-
- org.apfloat.internal.RadixMismatchException
-
- All Implemented Interfaces:
java.io.Serializable
public class RadixMismatchException extends ApfloatInternalException
Exception indicating a different radix being used in two operands of a calculation.While it's possible to convert numbers to different radixes using the
toRadix()
methods, this is highly inefficient. If numbers of different radixes need to be used in a calculation, they should be explicitly converted to matching radixes before attempting the calculation. Otherwise this exception should be thrown.- Since:
- 1.5
- Version:
- 1.5
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RadixMismatchException()
Constructs a new apfloat radix mismatch exception with an empty detail message.RadixMismatchException(java.lang.String message)
Constructs a new apfloat radix mismatch exception with the specified detail message.RadixMismatchException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat radix mismatch exception with the specified detail message and cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RadixMismatchException
public RadixMismatchException()
Constructs a new apfloat radix mismatch exception with an empty detail message.
-
RadixMismatchException
public RadixMismatchException(java.lang.String message)
Constructs a new apfloat radix mismatch exception with the specified detail message.- Parameters:
message
- The detail message.
-
RadixMismatchException
public RadixMismatchException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat radix mismatch exception with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- Originating cause of the exception.
-
-