Package org.xwiki.configuration
Class ConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.xwiki.configuration.ConversionException
-
- All Implemented Interfaces:
Serializable
public class ConversionException extends RuntimeException
Raised when a property of a given type is retrieved as a property of another type (eg trying to get a String property as a Boolean).- Since:
- 2.0M1
- Version:
- $Id: a29e0973a2f3efbaee1cd8e3beba91af2fa358f1 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversionException(String message)
Construct a new Exception with the specified detail message.ConversionException(String message, Throwable cause)
Construct a new Exception with the specified detail message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConversionException
public ConversionException(String message)
Construct a new Exception with the specified detail message.- Parameters:
message
- The detailed message. This can later be retrieved by the Throwable.getMessage() method.
-
ConversionException
public ConversionException(String message, Throwable cause)
Construct a new Exception with the specified detail message and cause.- Parameters:
message
- The detailed message. This can later be retrieved by the Throwable.getMessage() method.cause
- the cause. This can be retrieved later by the Throwable.getCause() method. (A null value is permitted, and indicates that the cause is nonexistent or unknown)
-
-