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