File tree 1 file changed +2
-2
lines changed
src/main/java/com/fasterxml/jackson/databind/ser/std
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ public void wrapAndThrow(SerializerProvider provider,
306
306
// Ditto for IOExceptions... except for mapping exceptions!
307
307
boolean wrap = (provider == null ) || provider .isEnabled (SerializationFeature .WRAP_EXCEPTIONS );
308
308
if (t instanceof IOException ) {
309
- if (!wrap || !(t instanceof JsonMappingException )) {
309
+ if (!wrap || !(t instanceof JacksonException )) {
310
310
throw (IOException ) t ;
311
311
}
312
312
} else if (!wrap ) {
@@ -328,7 +328,7 @@ public void wrapAndThrow(SerializerProvider provider,
328
328
// Ditto for IOExceptions... except for mapping exceptions!
329
329
boolean wrap = (provider == null ) || provider .isEnabled (SerializationFeature .WRAP_EXCEPTIONS );
330
330
if (t instanceof IOException ) {
331
- if (!wrap || !(t instanceof JsonMappingException )) {
331
+ if (!wrap || !(t instanceof JacksonException )) {
332
332
throw (IOException ) t ;
333
333
}
334
334
} else if (!wrap ) {
You can’t perform that action at this time.
0 commit comments