From b9aa62a0a9dfcafc17903ee9833860d049e30dc3 Mon Sep 17 00:00:00 2001 From: pchitolina-fauna <156219095+pchitolina-fauna@users.noreply.github.com> Date: Tue, 30 Jan 2024 21:11:11 -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 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