Skip to content

Commit

Permalink
Error example
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan authored Dec 2, 2024
1 parent b25367f commit 4703315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var app = Jex.create()
chain.proceed();
System.out.println("after request");
}))
.error(IllegalStateException.class, (ctx, exception) -> ctx.status(500).text("Handled IllegalStateException|" + exception.getMessage()))
.staticResource(
b ->
b.httpPath("/myResource")
Expand Down

0 comments on commit 4703315

Please sign in to comment.