Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.configuration2.ex.ConfigurationRuntimeException
org.apache.commons.configuration2.ex.ConversionException
- All Implemented Interfaces:
Serializable
Thrown when a property is incompatible with the type requested.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newConversionExceptionwithout specified detail message.ConversionException(String message) Constructs a newConversionExceptionwith specified detail message.ConversionException(String format, Object... params) Constructs a newConversionExceptionwith specified detail message.ConversionException(String message, Throwable cause) Constructs a newConversionExceptionwith specified detail message and nestedThrowable.ConversionException(Throwable cause) Constructs a newConversionExceptionwith specified nestedThrowable.ConversionException(Throwable cause, String format, Object... params) Constructs a newConversionExceptionwith 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
-
Constructor Details
-
ConversionException
public ConversionException()Constructs a newConversionExceptionwithout specified detail message. -
ConversionException
Constructs a newConversionExceptionwith specified detail message.- Parameters:
message- the error message
-
ConversionException
Constructs a newConversionExceptionwith specified detail message.- Parameters:
format- the error message for forString.format(String, Object...).params- the error parameters for forString.format(String, Object...).- Since:
- 2.14.0
-
ConversionException
Constructs a newConversionExceptionwith specified detail message and nestedThrowable.- Parameters:
message- the error messagecause- the exception or error that caused this exception to be thrown
-
ConversionException
Constructs a newConversionExceptionwith specified nestedThrowable.- Parameters:
cause- the exception or error that caused this exception to be thrown
-
ConversionException
Constructs a newConversionExceptionwith specified detail message.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)format- the error message for forString.format(String, Object...).params- the error parameters for forString.format(String, Object...).- Since:
- 2.14.0
-