Class TypeConversionException

  • All Implemented Interfaces:
    Serializable

    public class TypeConversionException
    extends Exception
    Exception throw when unable to converter from a source to destination type.
    Author:
    David B. Bracewell
    See Also:
    Serialized Form
    • Constructor Detail

      • TypeConversionException

        public TypeConversionException​(Object source,
                                       Type destType)
        Instantiates a new Type conversion exception.
        Parameters:
        source - the source object (thing being converted)
        destType - the destination type (the type being converted to)
      • TypeConversionException

        public TypeConversionException​(String message)
        Instantiates a new Type conversion exception.
        Parameters:
        message - the error message
      • TypeConversionException

        public TypeConversionException​(Object source,
                                       Type destType,
                                       Throwable cause)
        Instantiates a new Type conversion exception.
        Parameters:
        source - the source object (thing being converted)
        destType - the destination type (the type being converted to)
        cause - the exception causing the failed conversion