From c83faff8fdd8d7890baf17ad4276832cc98c6ea0 Mon Sep 17 00:00:00 2001 From: scottf Date: Thu, 10 Oct 2024 15:28:12 -0400 Subject: [PATCH] Direct Batch EOD and loop changes --- src/main/java/io/nats/client/api/Error.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/io/nats/client/api/Error.java b/src/main/java/io/nats/client/api/Error.java index 61d700b1f..3ec3124b9 100644 --- a/src/main/java/io/nats/client/api/Error.java +++ b/src/main/java/io/nats/client/api/Error.java @@ -97,10 +97,6 @@ public static Error convert(Status status) { return new Error(status.getCode(), NOT_SET, status.getMessage()); } - public static Error convert(Exception e) { - return new Error(500, NOT_SET, e.getMessage()); - } - public static final Error JsBadRequestErr = new Error(400, 10003, "bad request"); public static final Error JsNoMessageFoundErr = new Error(404, 10037, "no message found"); }