diff --git a/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java b/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java index 62da5ecd..3d97716d 100644 --- a/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java +++ b/faunaJava/src/main/java/com/fauna/serialization/FaunaParser.java @@ -247,7 +247,7 @@ public Long getValueAsLong() { try { return Long.parseLong(taggedTokenValue); } catch (NumberFormatException e) { - throw new RuntimeException("Error getting the current token as Long", e); + throw new SerializationException("Error getting the current token as Long", e); } } } \ No newline at end of file