From 7efe46d90f2e493307855aacd3e822b77c0b5732 Mon Sep 17 00:00:00 2001 From: pchitolina-fauna <156219095+pchitolina-fauna@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:05:08 -0300 Subject: [PATCH] Update faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java Co-authored-by: Lucas Pedroza <40873230+pnwpedro@users.noreply.github.com> --- .../src/main/java/com/fauna/serialization/FaunaParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java b/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java index e4de6775..5254f962 100644 --- a/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java +++ b/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java @@ -197,7 +197,7 @@ public Boolean getValueAsBoolean() { try { return jsonParser.getValueAsBoolean(); } catch (IOException e) { - throw new RuntimeException("Error getting the current token as Boolean", e); + throw new SerializationException("Error getting the current token as Boolean", e); } } } \ No newline at end of file