org.apache.commons.convert
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.apache.commons.convert.ConversionException
All Implemented Interfaces:
Serializable

public class ConversionException
extends IllegalArgumentException

ConversionException is used when a conversion has failed for some reason.

Since:
1.0
Version:
$Id: ConversionException.java 155441 2005-02-26 13:19:22Z dirkv $
Author:
Craig McClanahan, Paulo Gaspar, Stephen Colebourne
See Also:
Serialized Form

Field Summary
protected  Throwable cause
          The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.
 
Constructor Summary
ConversionException(String message)
          Construct a new exception with the specified message.
ConversionException(String message, Throwable cause)
          Construct a new exception with the specified message and root cause.
ConversionException(Throwable cause)
          Construct a new exception with the specified root cause.
 
Method Summary
 Throwable getCause()
          Gets the root cause of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Field Detail

cause

protected Throwable cause
The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.

Constructor Detail

ConversionException

public ConversionException(String message)
Construct a new exception with the specified message.

Parameters:
message - a message describing this exception

ConversionException

public ConversionException(Throwable cause)
Construct a new exception with the specified root cause.

Parameters:
cause - the root cause of this exception

ConversionException

public ConversionException(String message,
                           Throwable cause)
Construct a new exception with the specified message and root cause.

Parameters:
message - a message describing this exception
cause - the root cause of this exception
Method Detail

getCause

public Throwable getCause()
Gets the root cause of the exception.

Overrides:
getCause in class Throwable
Returns:
the root cause


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.