-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #2828 (although follow-up clean up needed, so first part)
- Loading branch information
1 parent
3766578
commit 2666a7f
Showing
10 changed files
with
101 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/com/fasterxml/jackson/databind/DatabindException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.fasterxml.jackson.databind; | ||
|
||
import com.fasterxml.jackson.core.JsonLocation; | ||
import com.fasterxml.jackson.core.JsonProcessingException; | ||
|
||
/** | ||
* Intermediate base class for all databind level processing problems, as | ||
* distinct from stream-level problems or I/O issues below. | ||
*<p> | ||
* Added in 2.13 to eventually replace {@link com.fasterxml.jackson.databind.JsonMappingException}; | ||
* for 2.x will allow limited use as target (as catching it will also catch mapping exception) | ||
* but will not be constructed or thrown directly. | ||
* | ||
* @since 2.13 | ||
*/ | ||
public abstract class DatabindException | ||
extends JsonProcessingException | ||
{ | ||
private static final long serialVersionUID = 3L; | ||
|
||
protected DatabindException(String msg, JsonLocation loc, Throwable rootCause) { | ||
super(msg, loc, rootCause); | ||
} | ||
|
||
protected DatabindException(String msg) { | ||
super(msg); | ||
} | ||
|
||
protected DatabindException(String msg, JsonLocation loc) { | ||
this(msg, loc, null); | ||
} | ||
|
||
protected DatabindException(String msg, Throwable rootCause) { | ||
this(msg, null, rootCause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 39 additions & 39 deletions
78
src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters