Skip to content

Commit

Permalink
Fix WrappedIOException->JacksonIOException
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 28, 2023
1 parent 45aa9ba commit 3ba5dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import jakarta.activation.DataHandler;

import tools.jackson.core.*;
import tools.jackson.core.exc.WrappedIOException;
import tools.jackson.core.exc.JacksonIOException;

import tools.jackson.databind.JavaType;
import tools.jackson.databind.SerializerProvider;
Expand Down Expand Up @@ -42,7 +42,7 @@ public void serialize(DataHandler value, JsonGenerator g, SerializerProvider pro
len = in.read(buffer);
}
} catch (IOException e) {
throw WrappedIOException.construct(e);
throw JacksonIOException.construct(e);
}
g.writeBinary(out.toByteArray());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import javax.activation.DataHandler;

import tools.jackson.core.*;
import tools.jackson.core.exc.WrappedIOException;
import tools.jackson.core.exc.JacksonIOException;
import tools.jackson.databind.JavaType;
import tools.jackson.databind.SerializerProvider;
import tools.jackson.databind.ser.std.StdSerializer;
Expand Down Expand Up @@ -41,7 +41,7 @@ public void serialize(DataHandler value, JsonGenerator g, SerializerProvider pro
len = in.read(buffer);
}
} catch (IOException e) {
throw WrappedIOException.construct(e);
throw JacksonIOException.construct(e);
}
g.writeBinary(out.toByteArray());
}
Expand Down

0 comments on commit 3ba5dca

Please sign in to comment.