Skip to content

Commit

Permalink
Fix javadoc of ServerExceptionMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Apr 5, 2023
1 parent 8d35384 commit 9685b22
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
/**
* When used on a method, then an implementation of {@link jakarta.ws.rs.ext.ExceptionMapper} is generated
* that calls the annotated method with the proper arguments.
*
* <p>
* When the annotation is placed on a method that is not a JAX-RS Resource class, the method handles exceptions in global
* fashion
* (as do regular JAX-RS {@code ExceptionMapper} implementations).
* fashion (as do regular JAX-RS {@code ExceptionMapper} implementations).
* However, when it is placed on a method of a JAX-RS Resource class, the method is only used to handle exceptions originating
* from
* that JAX-RS Resource class.
* Methods in a JAX-RS class annotated with this annotation will be used first when determining how to handle a thrown
* exception.
* This means that these methods take precedence over the global {@link jakarta.ws.rs.ext.ExceptionMapper} classes.
*
* <p>
* In addition to the exception being handled, an annotated method can also declare any of the following
* parameters (in any order):
* <ul>
Expand All @@ -39,7 +38,7 @@
*
* When {@code value} is not set, then the handled Exception type is deduced by the Exception type used in the method parameters
* (there must be exactly one Exception type in this case).
*
* <p>
* The return type of the method must be either be of type {@code Response}, {@code Uni<Response>}, {@code RestResponse} or
* {@code Uni<RestResponse>}.
*/
Expand Down

0 comments on commit 9685b22

Please sign in to comment.