Class RadixMismatchException

All Implemented Interfaces:
Serializable, ApfloatLocalizedException

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.15.0
Author:
Mikko Tommila
See Also:
  • Constructor Details

    • RadixMismatchException

      public RadixMismatchException()
      Constructs a new apfloat radix mismatch exception with an empty detail message.
    • RadixMismatchException

      public RadixMismatchException(String message)
      Constructs a new apfloat radix mismatch exception with the specified detail message.
      Parameters:
      message - The detail message.
    • RadixMismatchException

      public RadixMismatchException(String message, 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.
    • RadixMismatchException

      public RadixMismatchException(String message, String localizationKey, Object... localizationArgs)
      Constructs a new apfloat radix mismatch 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
    • RadixMismatchException

      public RadixMismatchException(String message, Throwable cause, String localizationKey, Object... localizationArgs)
      Constructs a new apfloat radix mismatch 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