Class ConversionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConversionException
    extends ConfigurationRuntimeException
    Thrown when a property is incompatible with the type requested.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConversionException()
      Constructs a new ConversionException without specified detail message.
      ConversionException​(java.lang.String message)
      Constructs a new ConversionException with specified detail message.
      ConversionException​(java.lang.String format, java.lang.Object... params)
      Constructs a new ConversionException with specified detail message.
      ConversionException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new ConversionException with specified detail message and nested Throwable.
      ConversionException​(java.lang.Throwable cause)
      Constructs a new ConversionException with specified nested Throwable.
      ConversionException​(java.lang.Throwable cause, java.lang.String format, java.lang.Object... params)
      Constructs a new ConversionException with specified detail message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConversionException

        public ConversionException()
        Constructs a new ConversionException without specified detail message.
      • ConversionException

        public ConversionException​(java.lang.String message)
        Constructs a new ConversionException with specified detail message.
        Parameters:
        message - the error message
      • ConversionException

        public ConversionException​(java.lang.String format,
                                   java.lang.Object... params)
        Constructs a new ConversionException with specified detail message.
        Parameters:
        format - the error message for for String.format(String, Object...).
        params - the error parameters for for String.format(String, Object...).
        Since:
        2.14.0
      • ConversionException

        public ConversionException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Constructs a new ConversionException with specified detail message and nested Throwable.
        Parameters:
        message - the error message.
        cause - the exception or error that caused this exception to be thrown.
      • ConversionException

        public ConversionException​(java.lang.Throwable cause)
        Constructs a new ConversionException with specified nested Throwable.
        Parameters:
        cause - the exception or error that caused this exception to be thrown.
      • ConversionException

        public ConversionException​(java.lang.Throwable cause,
                                   java.lang.String format,
                                   java.lang.Object... params)
        Constructs a new ConversionException with specified detail message.
        Parameters:
        format - the error message for for String.format(String, Object...).
        params - the error parameters for for String.format(String, Object...).
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        Since:
        2.14.0