org.jdesktop.binding.metadata
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jdesktop.binding.metadata.ConversionException
All Implemented Interfaces:
java.io.Serializable

public class ConversionException
extends java.lang.Exception

Thrown by Converter instances when errors occur during value conversion.

Version:
1.0
Author:
Amy Fowler
See Also:
Converter, Serialized Form

Constructor Summary
ConversionException(java.lang.Object value, java.lang.Class fromClass)
          Instantiates conversion exception for error which occurred when attempting to convert the specified object value to a string.
ConversionException(java.lang.Object value, java.lang.Class fromClass, java.lang.Throwable cause)
          Instantiates conversion exception for error which occurred when attempting to convert the specified object value to a string.
ConversionException(java.lang.String message)
          Instantiates conversion exception.
ConversionException(java.lang.String value, java.lang.Class toClass)
          Instantiates conversion exception for error which occurred when attempting to convert the specified string value to an object of the specified class.
ConversionException(java.lang.String value, java.lang.Class toClass, java.lang.Throwable cause)
          Instantiates conversion exception for error which occurred when attempting to convert the specified string value to an object of the specified class.
ConversionException(java.lang.String message, java.lang.Throwable cause)
          Instantiates conversion exception.
 
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(java.lang.Object value,
                           java.lang.Class fromClass)
Instantiates conversion exception for error which occurred when attempting to convert the specified object value to a string.

Parameters:
value - object which could not be converted
fromClass - class of object value being converted

ConversionException

public ConversionException(java.lang.Object value,
                           java.lang.Class fromClass,
                           java.lang.Throwable cause)
Instantiates conversion exception for error which occurred when attempting to convert the specified object value to a string.

Parameters:
value - object value which could not be converted
fromClass - class of object value being converted
cause - the specific throwable which caused conversion failure

ConversionException

public ConversionException(java.lang.String value,
                           java.lang.Class toClass)
Instantiates conversion exception for error which occurred when attempting to convert the specified string value to an object of the specified class.

Parameters:
value - string value which could not be converted
toClass - class the value was being converted to

ConversionException

public ConversionException(java.lang.String value,
                           java.lang.Class toClass,
                           java.lang.Throwable cause)
Instantiates conversion exception for error which occurred when attempting to convert the specified string value to an object of the specified class.

Parameters:
value - object value which could not be converted
toClass - class of object value being converted
cause - the specific throwable which caused conversion failure

ConversionException

public ConversionException(java.lang.String message)
Instantiates conversion exception.

Parameters:
message - String containing description of why exception occurred

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Throwable cause)
Instantiates conversion exception.

Parameters:
message - String containing description of why exception occurred
cause - the specific throwable which caused conversion failure


Copyright © 2005 Sun Microsystems All Rights Reserved.