Class TypeConversionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StreamCacheException

public class TypeConversionException extends RuntimeCamelException
Exception when failing during type conversion.
See Also:
  • Constructor Details

    • TypeConversionException

      public TypeConversionException(Object value, Class<?> type, Throwable cause)
  • Method Details

    • getValue

      public Object getValue()
      Returns the value which could not be converted
    • getToType

      public Class<?> getToType()
      Returns the required to type
    • getFromType

      public Class<?> getFromType()
      Returns the required from type. Returns null if the provided value was null.
    • createMessage

      public static String createMessage(Object value, Class<?> type, Throwable cause)
      Returns an error message for type conversion failed.