org.codehaus.jackson
Class JsonProcessingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.codehaus.jackson.JsonProcessingException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JsonGenerationException, JsonMappingException, JsonParseException

public class JsonProcessingException
extends java.io.IOException

Intermediate base class for all problems encountered when processing (parsing, generating) JSON content that are not pure I/O problems. Regular IOExceptions will be passed through as is. Sub-class of IOException for convenience.

See Also:
Serialized Form

Field Summary
protected  JsonLocation mLocation
           
 
Constructor Summary
protected JsonProcessingException(java.lang.String msg)
           
protected JsonProcessingException(java.lang.String msg, JsonLocation loc)
           
protected JsonProcessingException(java.lang.String msg, JsonLocation loc, java.lang.Throwable rootCause)
           
protected JsonProcessingException(java.lang.String msg, java.lang.Throwable rootCause)
           
protected JsonProcessingException(java.lang.Throwable rootCause)
           
 
Method Summary
 JsonLocation getLocation()
           
 java.lang.String getMessage()
          Default method overridden so that we can add location information
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mLocation

protected JsonLocation mLocation
Constructor Detail

JsonProcessingException

protected JsonProcessingException(java.lang.String msg,
                                  JsonLocation loc,
                                  java.lang.Throwable rootCause)

JsonProcessingException

protected JsonProcessingException(java.lang.String msg)

JsonProcessingException

protected JsonProcessingException(java.lang.String msg,
                                  JsonLocation loc)

JsonProcessingException

protected JsonProcessingException(java.lang.String msg,
                                  java.lang.Throwable rootCause)

JsonProcessingException

protected JsonProcessingException(java.lang.Throwable rootCause)
Method Detail

getLocation

public JsonLocation getLocation()

getMessage

public java.lang.String getMessage()
Default method overridden so that we can add location information

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable