Class ApfloatInternalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apfloat.ApfloatRuntimeException
org.apfloat.internal.ApfloatInternalException
- All Implemented Interfaces:
Serializable, ApfloatLocalizedException
- Direct Known Subclasses:
BackingStorageException, ImplementationMismatchException, RadixMismatchException, TransformLengthExceededException
Exception indicating some unexpected apfloat
implementation specific error situation.
This exception can be thrown in different situations, for example:
- Backing storage failure. For example, if a number is stored on disk,
an
IOExceptioncan be thrown in any of the disk operations, if e.g. a file can't be created, or if the disk is full. - Operands of some operation have different radixes.
- Other internal limitation, e.g. the maximum transform length mathematically possible for the implementation, is exceeded.
- Since:
- 1.5
- Version:
- 1.15.0
- Author:
- Mikko Tommila
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new apfloat internal exception with an empty detail message.ApfloatInternalException(String message) Constructs a new apfloat internal exception with the specified detail message.ApfloatInternalException(String message, String localizationKey, Object... localizationArgs) Constructs a new apfloat internal exception with the specified detail message and localization data.ApfloatInternalException(String message, Throwable cause) Constructs a new apfloat internal exception with the specified detail message and cause.ApfloatInternalException(String message, Throwable cause, String localizationKey, Object... localizationArgs) Constructs a new apfloat internal exception with the specified detail message, cause and localization data. -
Method Summary
Methods inherited from class ApfloatRuntimeException
getLocalizationArgs, getLocalizationKey, getLocalizedMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ApfloatLocalizedException
getMessage
-
Constructor Details
-
ApfloatInternalException
public ApfloatInternalException()Constructs a new apfloat internal exception with an empty detail message. -
ApfloatInternalException
Constructs a new apfloat internal exception with the specified detail message.- Parameters:
message- The detail message.
-
ApfloatInternalException
-
ApfloatInternalException
Constructs a new apfloat internal exception with the specified detail message and localization data.- Parameters:
message- The detail message.localizationKey- The localization key.localizationArgs- The localization arguments.- Since:
- 1.15.0
-
ApfloatInternalException
public ApfloatInternalException(String message, Throwable cause, String localizationKey, Object... localizationArgs) Constructs a new apfloat internal exception with the specified detail message, cause and localization data.- Parameters:
message- The detail message.cause- Originating cause of the exception.localizationKey- The localization key.localizationArgs- The localization arguments.- Since:
- 1.15.0
-