From 2b45464ef833bf815f70411a179d58b106ed9d0a Mon Sep 17 00:00:00 2001 From: Josiah Noel <32279667+SentryMan@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:43:34 -0500 Subject: [PATCH] Update ControllerMethodWriter.java --- .../io/avaje/http/generator/jex/ControllerMethodWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-generator-jex/src/main/java/io/avaje/http/generator/jex/ControllerMethodWriter.java b/http-generator-jex/src/main/java/io/avaje/http/generator/jex/ControllerMethodWriter.java index cd20aa76..8eccd61b 100644 --- a/http-generator-jex/src/main/java/io/avaje/http/generator/jex/ControllerMethodWriter.java +++ b/http-generator-jex/src/main/java/io/avaje/http/generator/jex/ControllerMethodWriter.java @@ -43,7 +43,7 @@ void writeRouting() { final String fullPath = segments.fullPath(); if (method.isErrorMethod()) { - writer.append(" routing.error(this::_%s)", fullPath, method.simpleName()); + writer.append(" routing.error(%s.class, this::_%s);", method.exceptionShortName(), method.simpleName()).eol(); } else if (isFilter) { writer.append(" routing.filter(this::_%s)", method.simpleName()); } else {