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:
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 newConversionExceptionwithout specified detail message.ConversionException(java.lang.String message)Constructs a newConversionExceptionwith specified detail message.ConversionException(java.lang.String message, java.lang.Throwable cause)Constructs a newConversionExceptionwith specified detail message and nestedThrowable.ConversionException(java.lang.Throwable cause)Constructs a newConversionExceptionwith specified nestedThrowable.
-
-
-
Constructor Detail
-
ConversionException
public ConversionException()
Constructs a newConversionExceptionwithout specified detail message.
-
ConversionException
public ConversionException(java.lang.String message)
Constructs a newConversionExceptionwith specified detail message.- Parameters:
message- the error message
-
ConversionException
public ConversionException(java.lang.Throwable cause)
Constructs a newConversionExceptionwith specified nestedThrowable.- Parameters:
cause- the exception or error that caused this exception to be thrown
-
ConversionException
public ConversionException(java.lang.String message, java.lang.Throwable cause)Constructs a newConversionExceptionwith specified detail message and nestedThrowable.- Parameters:
message- the error messagecause- the exception or error that caused this exception to be thrown
-
-