org.directwebremoting.extend
Class JsonModeMarshallException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.directwebremoting.extend.JsonModeMarshallException
All Implemented Interfaces:
java.io.Serializable

public class JsonModeMarshallException
extends java.lang.RuntimeException

JsonModeMarshallException is a hint to the conversion process that we are trying to convert in JSON mode, but we've discovered recursive data. TODO: This should probably be called JsonConversionException or similar

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

Constructor Summary
JsonModeMarshallException(java.lang.Class<?> paramType)
          Default ctor
JsonModeMarshallException(java.lang.Class<?> paramType, java.lang.String message)
          Construct a JsonModeMarshallException with a description message and exception
JsonModeMarshallException(java.lang.Class<?> paramType, java.lang.Throwable ex)
          Construct a JsonModeMarshallException 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

JsonModeMarshallException

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

Parameters:
paramType - The type we were trying to marshall

JsonModeMarshallException

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

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

JsonModeMarshallException

public JsonModeMarshallException(java.lang.Class<?> paramType,
                                 java.lang.String message)
Construct a JsonModeMarshallException 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