Skip to content

Commit 35f3ab4

Browse files
committed
Bit of renaming
1 parent e491c28 commit 35f3ab4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/main/java/com/fasterxml/jackson/core/JsonParseException.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
package com.fasterxml.jackson.core;
77

8-
import com.fasterxml.jackson.core.exc.JsonReadException;
8+
import com.fasterxml.jackson.core.exc.StreamReadException;
99
import com.fasterxml.jackson.core.util.RequestPayload;
1010

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

src/main/java/com/fasterxml/jackson/core/exc/InputCoercionException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @since 2.10
1414
*/
15-
public class InputCoercionException extends JsonReadException {
15+
public class InputCoercionException extends StreamReadException {
1616
private static final long serialVersionUID = 1L;
1717

1818
/**

src/main/java/com/fasterxml/jackson/core/exc/JsonReadException.java renamed to src/main/java/com/fasterxml/jackson/core/exc/StreamReadException.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @since 2.10
1111
*/
12-
public abstract class JsonReadException
12+
public abstract class StreamReadException
1313
extends JsonProcessingException
1414
{
1515
final static long serialVersionUID = 1L;
@@ -24,22 +24,22 @@ public abstract class JsonReadException
2424
*/
2525
protected RequestPayload _requestPayload;
2626

27-
public JsonReadException(JsonParser p, String msg) {
27+
public StreamReadException(JsonParser p, String msg) {
2828
super(msg, (p == null) ? null : p.getCurrentLocation());
2929
_processor = p;
3030
}
3131

32-
public JsonReadException(JsonParser p, String msg, Throwable root) {
32+
public StreamReadException(JsonParser p, String msg, Throwable root) {
3333
super(msg, (p == null) ? null : p.getCurrentLocation(), root);
3434
_processor = p;
3535
}
3636

37-
public JsonReadException(JsonParser p, String msg, JsonLocation loc) {
37+
public StreamReadException(JsonParser p, String msg, JsonLocation loc) {
3838
super(msg, loc, null);
3939
_processor = p;
4040
}
4141

42-
protected JsonReadException(String msg, JsonLocation loc, Throwable rootCause) {
42+
protected StreamReadException(String msg, JsonLocation loc, Throwable rootCause) {
4343
super(msg);
4444
if (rootCause != null) {
4545
initCause(rootCause);
@@ -53,15 +53,15 @@ protected JsonReadException(String msg, JsonLocation loc, Throwable rootCause) {
5353
*<p>
5454
* NOTE: `this` instance is modified and no new instance is constructed.
5555
*/
56-
public abstract JsonReadException withParser(JsonParser p);
56+
public abstract StreamReadException withParser(JsonParser p);
5757

5858
/**
5959
* Fluent method that may be used to assign payload to this exception,
6060
* to let recipient access it for diagnostics purposes.
6161
*<p>
6262
* NOTE: `this` instance is modified and no new instance is constructed.
6363
*/
64-
public abstract JsonReadException withRequestPayload(RequestPayload p);
64+
public abstract StreamReadException withRequestPayload(RequestPayload p);
6565

6666
@Override
6767
public JsonParser getProcessor() {

0 commit comments

Comments
 (0)