public class JsonGenerationException extends JsonProcessingException
Constructor and Description |
---|
JsonGenerationException(java.lang.String msg)
Deprecated.
|
JsonGenerationException(java.lang.String msg,
JsonGenerator g) |
JsonGenerationException(java.lang.String msg,
java.lang.Throwable rootCause)
Deprecated.
|
JsonGenerationException(java.lang.String msg,
java.lang.Throwable rootCause,
JsonGenerator g) |
JsonGenerationException(java.lang.Throwable rootCause)
Deprecated.
|
JsonGenerationException(java.lang.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, getOriginalMessage, toString
@Deprecated public JsonGenerationException(java.lang.Throwable rootCause)
@Deprecated public JsonGenerationException(java.lang.String msg)
@Deprecated public JsonGenerationException(java.lang.String msg, java.lang.Throwable rootCause)
public JsonGenerationException(java.lang.Throwable rootCause, JsonGenerator g)
public JsonGenerationException(java.lang.String msg, JsonGenerator g)
public JsonGenerationException(java.lang.String msg, java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved