Class TypeConversionException

    • Constructor Detail

      • TypeConversionException

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

      • 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.