com.fasterxml.jackson.core.io.JsonEOFException Java Examples
The following examples show how to use
com.fasterxml.jackson.core.io.JsonEOFException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ParserMinimalBase.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 2.8 */ protected void _reportInvalidEOF(String msg, JsonToken currToken) throws JsonParseException { throw new JsonEOFException(this, currToken, "Unexpected end-of-input"+msg); }
Example #2
Source File: ParserMinimalBase.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @deprecated Since 2.8 use {@link #_reportInvalidEOF(String, JsonToken)} instead */ @Deprecated // since 2.8 protected void _reportInvalidEOF(String msg) throws JsonParseException { throw new JsonEOFException(this, null, "Unexpected end-of-input"+msg); }
Example #3
Source File: AttributeValueTest.java From james-project with Apache License 2.0 | 4 votes |
@Test void fromJsonStringShouldThrowOnBrokenJson() { assertThatThrownBy(() -> AttributeValue.fromJsonString("{\"serializer\":\"StringSerializer\",\"value\": \"Missing closing bracket\"")) .isInstanceOf(JsonEOFException.class); }