Skip to content

Commit

Permalink
use JsonIOException for failed json write
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Sep 14, 2023
1 parent b60b434 commit b20fa5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/esaulpaugh/headlong/abi/ABIJSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonIOException;
import com.google.gson.JsonObject;
import com.google.gson.stream.JsonWriter;

Expand Down Expand Up @@ -288,7 +289,7 @@ static String toJson(ABIObject o, boolean pretty) {
.close();
return stringOut.toString();
} catch (IOException io) {
throw new RuntimeException(io);
throw new JsonIOException(io);
}
}

Expand Down

0 comments on commit b20fa5c

Please sign in to comment.