org.xwiki.configuration
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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: 80a0dc518f142434ebee6dfd27998634c5e6ead0 $
See Also:
Serialized Form

Constructor Summary
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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(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)


Copyright © 2004-2014 XWiki. All Rights Reserved.