Package org.codehaus.jackson
Class JsonProcessingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- 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. RegularIOException
s will be passed through as is. Sub-class ofIOException
for convenience.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonLocation
mLocation
-
Constructor Summary
Constructors Modifier Constructor Description protected
JsonProcessingException(java.lang.String msg)
protected
JsonProcessingException(java.lang.String msg, java.lang.Throwable rootCause)
protected
JsonProcessingException(java.lang.String msg, JsonLocation loc)
protected
JsonProcessingException(java.lang.String msg, JsonLocation loc, java.lang.Throwable rootCause)
protected
JsonProcessingException(java.lang.Throwable rootCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonLocation
getLocation()
java.lang.String
getMessage()
Default method overridden so that we can add location informationjava.lang.String
toString()
-
-
-
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 classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-