org.directwebremoting
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.directwebremoting.ConversionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MarshallException

public class ConversionException
extends java.lang.RuntimeException

Something has gone wrong when we were doing some conversion.

Author:
Joe Walker [joe at getahead dot ltd dot uk]
See Also:
Serialized Form

Constructor Summary
ConversionException(java.lang.Class<?> paramType)
          Default ctor
ConversionException(java.lang.Class<?> paramType, java.lang.String message)
          Construct a ConversionException with a description message and exception
ConversionException(java.lang.Class<?> paramType, java.lang.String message, java.lang.Throwable ex)
          Construct a ConversionException with a description message and exception
ConversionException(java.lang.Class<?> paramType, java.lang.Throwable ex)
          Construct a ConversionException with an exception and a destination type
 
Method Summary
 java.lang.Class<?> getConversionType()
          Accessor for the type we are converting to/from
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConversionException

public ConversionException(java.lang.Class<?> paramType)
Default ctor

Parameters:
paramType - The type we were trying to marshall

ConversionException

public ConversionException(java.lang.Class<?> paramType,
                           java.lang.Throwable ex)
Construct a ConversionException with an exception and a destination type

Parameters:
paramType - The type we were trying to marshall
ex - error stack trace

ConversionException

public ConversionException(java.lang.Class<?> paramType,
                           java.lang.String message)
Construct a ConversionException with a description message and exception

Parameters:
paramType - The type we were trying to marshall
message - error description

ConversionException

public ConversionException(java.lang.Class<?> paramType,
                           java.lang.String message,
                           java.lang.Throwable ex)
Construct a ConversionException with a description message and exception

Parameters:
paramType - The type we were trying to marshall
message - error description
Method Detail

getConversionType

public java.lang.Class<?> getConversionType()
Accessor for the type we are converting to/from

Returns:
The type we are converting to/from

Copyright 2008