Class ConversionException

All Implemented Interfaces:
Serializable

public class ConversionException extends SysException
This exception is used to indicate that an object could not be converted to a requested type.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ConversionException

      public ConversionException(String message, ConversionException cause)
      Constructs the exception with a message and a cause conversion exception.
      Parameters:
      message - A message explaining the cause of the conversion failure.
      cause - The original exception causing the exception.
    • ConversionException

      public ConversionException(String message, Object failedValue)
      Constructs the exception with a message and the object that failed conversion.
      Parameters:
      message - A message explaining the cause of the conversion failure.
      failedValue - The object that could not be converted.
    • ConversionException

      public ConversionException(String message, Throwable cause, Object failedValue)
      Constructs the exception with a message and the object that failed conversion.
      Parameters:
      message - A message explaining the cause of the conversion failure.
      cause - The cause of the conversion failure.
      failedValue - The object that could not be converted.
  • Method Details

    • getFailedValue

      public Object getFailedValue()
      This method returns the object that could not be converted.
      Returns:
      the object that could not be converted.