Skip to content

Commit

Permalink
Update statusHandlers.adoc (micronaut-projects#10119)
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
paulgrugnale authored Nov 16, 2023
1 parent 2b87525 commit 5ad9343
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The ann:http.annotation.Error[] annotation supports defining either an exception class or an HTTP status. Methods annotated with ann:http.annotation.Error[] must be defined with in a class annotated with ann:http.annotation.Controller[]. The annotation also supports the notion of global and local, local being the default.
The ann:http.annotation.Error[] annotation supports defining either an exception class or an HTTP status. Methods annotated with ann:http.annotation.Error[] must be defined within a class annotated with ann:http.annotation.Controller[]. The annotation also supports the notion of global and local, local being the default.

Local error handlers only respond to exceptions thrown as a result of the route being matched to another method in the same controller. Global error handlers can be invoked as a result of any thrown exception. A local error handler is always searched for first when resolving which handler to execute.

Expand Down

0 comments on commit 5ad9343

Please sign in to comment.