public class JsonGenerationException extends JsonProcessingException
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
_processor |
_location
Constructor and Description |
---|
JsonGenerationException(String msg)
Deprecated.
|
JsonGenerationException(String msg,
JsonGenerator g) |
JsonGenerationException(String msg,
Throwable rootCause)
Deprecated.
|
JsonGenerationException(String msg,
Throwable rootCause,
JsonGenerator g) |
JsonGenerationException(Throwable rootCause)
Deprecated.
|
JsonGenerationException(Throwable rootCause,
JsonGenerator g) |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
getProcessor()
Method that allows accessing underlying processor that triggered
this exception; typically either
JsonParser or JsonGenerator
for exceptions that originate from streaming API. |
JsonGenerationException |
withGenerator(JsonGenerator g)
Fluent method that may be used to assign originating
JsonGenerator ,
to be accessed using getProcessor() . |
clearLocation, getLocation, getMessage, getMessageSuffix, getOriginalMessage, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected transient JsonGenerator _processor
@Deprecated public JsonGenerationException(Throwable rootCause)
@Deprecated public JsonGenerationException(String msg)
@Deprecated public JsonGenerationException(String msg, Throwable rootCause)
public JsonGenerationException(Throwable rootCause, JsonGenerator g)
public JsonGenerationException(String msg, JsonGenerator g)
public JsonGenerationException(String msg, Throwable rootCause, JsonGenerator g)
public JsonGenerationException withGenerator(JsonGenerator g)
JsonGenerator
,
to be accessed using getProcessor()
.public JsonGenerator getProcessor()
JsonProcessingException
JsonParser
or JsonGenerator
for exceptions that originate from streaming API.
Note that it is possible that `null` may be returned if code throwing
exception either has no access to processor; or has not been retrofitted
to set it; this means that caller needs to take care to check for nulls.
Subtypes override this method with co-variant return type, for more
type-safe access.getProcessor
in class JsonProcessingException
Copyright © 2008–2017 FasterXML. All rights reserved.