Skip to content

Commit 7ce212b

Browse files
committed
use specific exception type
Signed-off-by: Andrew Mak <[email protected]>
1 parent dbbade5 commit 7ce212b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/EventsHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public void configure() throws Exception {
5454

5555
from("direct:events")
5656

57-
.onException(Exception.class)
57+
.onException(DecoderException.class)
58+
.onException(GeneralSecurityException.class)
5859
.handled(true)
5960
.removeHeaders("*")
6061
.setHeader(Exchange.HTTP_RESPONSE_CODE, constant(404))

0 commit comments

Comments
 (0)