File tree 2 files changed +5
-6
lines changed
src/main/java/com/fasterxml/jackson/databind
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .io .Closeable ;
4
4
import java .io .IOException ;
5
+ import java .io .UncheckedIOException ;
5
6
import java .util .*;
6
7
7
8
import com .fasterxml .jackson .core .*;
@@ -400,6 +401,6 @@ protected <R> R _handleMappingException(JsonMappingException e) {
400
401
}
401
402
402
403
protected <R > R _handleIOException (IOException e ) {
403
- throw new RuntimeException (e .getMessage (), e );
404
+ throw new UncheckedIOException (e .getMessage (), e );
404
405
}
405
406
}
Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .databind .exc ;
2
2
3
+ import java .io .UncheckedIOException ;
4
+
3
5
import com .fasterxml .jackson .databind .JsonMappingException ;
4
6
5
7
/**
6
8
* Wrapper used when interface does not allow throwing a checked
7
9
* {@link JsonMappingException}
8
10
*/
9
11
@ SuppressWarnings ("serial" )
10
- public class RuntimeJsonMappingException extends RuntimeException
12
+ public class RuntimeJsonMappingException extends UncheckedIOException
11
13
{
12
14
public RuntimeJsonMappingException (JsonMappingException cause ) {
13
15
super (cause );
14
16
}
15
17
16
- public RuntimeJsonMappingException (String message ) {
17
- super (message );
18
- }
19
-
20
18
public RuntimeJsonMappingException (String message , JsonMappingException cause ) {
21
19
super (message , cause );
22
20
}
You can’t perform that action at this time.
0 commit comments