Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
Jackson Core Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Core Source Code files are provided in the source packge (jackson-core-2.12.4-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Core Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/core/exc/StreamReadException.java
package com.fasterxml.jackson.core.exc; import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.core.util.RequestPayload; /** * Intermediate base class for all read-side streaming processing problems, including * parsing and input value coercion problems. * * @since 2.10 */ public abstract class StreamReadException extends JsonProcessingException { final static long serialVersionUID = 1L; protected transient JsonParser _processor; /** * Optional payload that can be assigned to pass along for error reporting * or handling purposes. Core streaming parser implementations DO NOT * initialize this; it is up to using applications and frameworks to * populate it. */ protected RequestPayload _requestPayload; public StreamReadException(JsonParser p, String msg) { super(msg, (p == null) ? null : p.getCurrentLocation()); _processor = p; } public StreamReadException(JsonParser p, String msg, Throwable root) { super(msg, (p == null) ? null : p.getCurrentLocation(), root); _processor = p; } public StreamReadException(JsonParser p, String msg, JsonLocation loc) { super(msg, loc, null); _processor = p; } protected StreamReadException(String msg, JsonLocation loc, Throwable rootCause) { super(msg); if (rootCause != null) { initCause(rootCause); } _location = loc; } /** * Fluent method that may be used to assign originating {@link JsonParser}, * to be accessed using {@link #getProcessor()}. *<p> * NOTE: `this` instance is modified and no new instance is constructed. * * @param p Parser instance to assign to this exception * * @return This exception instance to allow call chaining */ public abstract StreamReadException withParser(JsonParser p); /** * Fluent method that may be used to assign payload to this exception, * to let recipient access it for diagnostics purposes. *<p> * NOTE: `this` instance is modified and no new instance is constructed. * * @param payload Payload to assign to this exception * * @return This exception instance to allow call chaining */ public abstract StreamReadException withRequestPayload(RequestPayload payload); @Override public JsonParser getProcessor() { return _processor; } /** * Method that may be called to find payload that was being parsed, if * one was specified for parser that threw this Exception. * * @return request body, if payload was specified; `null` otherwise */ public RequestPayload getRequestPayload() { return _requestPayload; } /** * The method returns the String representation of the request payload if * one was specified for parser that threw this Exception. * * @return request body as String, if payload was specified; `null` otherwise */ public String getRequestPayloadAsString() { return (_requestPayload != null) ? _requestPayload.toString() : null; } /** * Overriding the getMessage() to include the request body */ @Override public String getMessage() { String msg = super.getMessage(); if (_requestPayload != null) { msg += "\nRequest payload : " + _requestPayload.toString(); } return msg; } }
⏎ com/fasterxml/jackson/core/exc/StreamReadException.java
Â
⇒ Download and Install Jackson Binary Package
⇠What Is Jackson
⇑ Downloading and Reviewing jackson-*.jar
⇑⇑ Jackson - Java JSON library
2016-02-03, 29598👍, 1💬
Popular Posts:
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...