Top Description Fields Constructors Methods
com.fasterxml.jackson.core.io

public Class JsonEOFException

extends JsonParseException
Class Inheritance
Imports
com.fasterxml.jackson.core.JsonParseException, .JsonParser, .JsonToken

Specialized JsonParseException that is thrown when end-of-input is reached unexpectedly, either within token being decoded, or during skipping of intervening white-space that is not between root-level tokens (that is, is within JSON Object or JSON Array construct).
Since
2.8

Field Summary

Modifier and TypeField and Description
protected final JsonToken
_token

Type of token that was being decoded, if parser had enough information to recognize type (such as starting double-quote for Strings)

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JsonToken

Returns:

JsonToken that was being decoded while encountering end-of-input
getTokenBeingDecoded
()

Accessor for possibly available information about token that was being decoded while encountering end of input.

Inherited from com.fasterxml.jackson.core.JsonParseException:
getMessagegetProcessorgetRequestPayloadgetRequestPayloadAsStringwithParserwithRequestPayload

Field Detail

_tokenback to summary
protected final JsonToken _token

Type of token that was being decoded, if parser had enough information to recognize type (such as starting double-quote for Strings)

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.core.JsonParseException.serialVersionUID.

Constructor Detail

JsonEOFExceptionback to summary
public JsonEOFException(JsonParser p, JsonToken token, String msg)

Method Detail

getTokenBeingDecodedback to summary
public JsonToken getTokenBeingDecoded()

Accessor for possibly available information about token that was being decoded while encountering end of input.

Returns:JsonToken

JsonToken that was being decoded while encountering end-of-input