com.fasterxml.jackson.core
Class JsonProcessingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.fasterxml.jackson.core.JsonProcessingException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JsonGenerationException, JsonParseException

public class JsonProcessingException
extends 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(String msg)
           
protected JsonProcessingException(String msg, JsonLocation loc)
           
protected JsonProcessingException(String msg, JsonLocation loc, Throwable rootCause)
           
protected JsonProcessingException(String msg, Throwable rootCause)
           
protected JsonProcessingException(Throwable rootCause)
           
 
Method Summary
 JsonLocation getLocation()
           
 String getMessage()
          Default method overridden so that we can add location information
 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(String msg,
                                  JsonLocation loc,
                                  Throwable rootCause)

JsonProcessingException

protected JsonProcessingException(String msg)

JsonProcessingException

protected JsonProcessingException(String msg,
                                  JsonLocation loc)

JsonProcessingException

protected JsonProcessingException(String msg,
                                  Throwable rootCause)

JsonProcessingException

protected JsonProcessingException(Throwable rootCause)
Method Detail

getLocation

public JsonLocation getLocation()

getMessage

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

Overrides:
getMessage in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2012 fasterxml.com. All Rights Reserved.