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:
Serializable
- Direct Known Subclasses:
JsonGenerationException,JsonMappingException,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. RegularIOExceptions will be passed through as is. Sub-class ofIOExceptionfor convenience.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonLocationmLocation
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonProcessingException(String msg)protectedJsonProcessingException(String msg, Throwable rootCause)protectedJsonProcessingException(String msg, JsonLocation loc)protectedJsonProcessingException(String msg, JsonLocation loc, Throwable rootCause)protectedJsonProcessingException(Throwable rootCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonLocationgetLocation()StringgetMessage()Default method overridden so that we can add location informationStringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
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(Throwable rootCause)
-
-
Method Detail
-
getLocation
public JsonLocation getLocation()
-
getMessage
public String getMessage()
Default method overridden so that we can add location information- Overrides:
getMessagein classThrowable
-
-