Skip to content

Commit

Permalink
Bit of renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 16, 2019
1 parent e491c28 commit 35f3ab4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

package com.fasterxml.jackson.core;

import com.fasterxml.jackson.core.exc.JsonReadException;
import com.fasterxml.jackson.core.exc.StreamReadException;
import com.fasterxml.jackson.core.util.RequestPayload;

/**
* Exception type for parsing problems, used when non-well-formed content
* (content that does not conform to JSON syntax as per specification)
* is encountered.
*/
public class JsonParseException extends JsonReadException
public class JsonParseException extends StreamReadException
{
private static final long serialVersionUID = 2L; // 2.7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @since 2.10
*/
public class InputCoercionException extends JsonReadException {
public class InputCoercionException extends StreamReadException {
private static final long serialVersionUID = 1L;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @since 2.10
*/
public abstract class JsonReadException
public abstract class StreamReadException
extends JsonProcessingException
{
final static long serialVersionUID = 1L;
Expand All @@ -24,22 +24,22 @@ public abstract class JsonReadException
*/
protected RequestPayload _requestPayload;

public JsonReadException(JsonParser p, String msg) {
public StreamReadException(JsonParser p, String msg) {
super(msg, (p == null) ? null : p.getCurrentLocation());
_processor = p;
}

public JsonReadException(JsonParser p, String msg, Throwable root) {
public StreamReadException(JsonParser p, String msg, Throwable root) {
super(msg, (p == null) ? null : p.getCurrentLocation(), root);
_processor = p;
}

public JsonReadException(JsonParser p, String msg, JsonLocation loc) {
public StreamReadException(JsonParser p, String msg, JsonLocation loc) {
super(msg, loc, null);
_processor = p;
}

protected JsonReadException(String msg, JsonLocation loc, Throwable rootCause) {
protected StreamReadException(String msg, JsonLocation loc, Throwable rootCause) {
super(msg);
if (rootCause != null) {
initCause(rootCause);
Expand All @@ -53,15 +53,15 @@ protected JsonReadException(String msg, JsonLocation loc, Throwable rootCause) {
*<p>
* NOTE: `this` instance is modified and no new instance is constructed.
*/
public abstract JsonReadException withParser(JsonParser p);
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.
*/
public abstract JsonReadException withRequestPayload(RequestPayload p);
public abstract StreamReadException withRequestPayload(RequestPayload p);

@Override
public JsonParser getProcessor() {
Expand Down

0 comments on commit 35f3ab4

Please sign in to comment.