com.guiseframework.converter
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.guiseframework.converter.ConversionException
All Implemented Interfaces:
java.io.Serializable

public class ConversionException
extends java.lang.Exception

Exception representing a conversion error.

Author:
Garret Wilson
See Also:
Serialized Form

Constructor Summary
ConversionException()
          Constructs a new exception with null as its detail message.
ConversionException(java.lang.String message)
          Constructs a new exception with the specified detail message.
ConversionException(java.lang.String message, java.lang.Object value)
          Constructs a new exception with the specified detail message and value object.
ConversionException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
ConversionException(java.lang.String message, java.lang.Throwable cause, java.lang.Object value)
          Constructs a new exception with the specified detail message, cause, and value object.
ConversionException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).
 
Method Summary
 java.lang.Object getValue()
           
 
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()
Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).


ConversionException

public ConversionException(java.lang.String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Object value)
Constructs a new exception with the specified detail message and value object. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
value - The value being converted, which may be of any type, or null if the value being converted is not available.

ConversionException

public ConversionException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).

Parameters:
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method), or null if the cause is nonexistent or unknown.

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method), or null if the cause is nonexistent or unknown.

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Throwable cause,
                           java.lang.Object value)
Constructs a new exception with the specified detail message, cause, and value object.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method), or null if the cause is nonexistent or unknown.
value - The value being converted, which may be of any type, or null if the value being converted is not available.
Method Detail

getValue

public java.lang.Object getValue()
Returns:
The value being converted, which may be of any type, or null if the value being converted is not available.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.