Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
com.aquima.interactions.foundation.convert.ConversionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConversionException
(String message, ConversionException cause) Constructs the exception with a message and a cause conversion exception.ConversionException
(String message, Object failedValue) Constructs the exception with a message and the object that failed conversion.ConversionException
(String message, Throwable cause, Object failedValue) Constructs the exception with a message and the object that failed conversion. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the object that could not be converted.Methods inherited from class com.aquima.interactions.foundation.exception.SysException
raise, raise
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConversionException
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
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
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
This method returns the object that could not be converted.- Returns:
- the object that could not be converted.
-