You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful when you have a general exception mapper for a parent type (like `RuntimeException`) but want to handle specific wrapped exceptions differently.
Copy file name to clipboardExpand all lines: extensions/resteasy-reactive/rest/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveScanningProcessor.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,9 @@ public void applicationSpecificUnwrappedExceptions(CombinedIndexBuildItem combin
Copy file name to clipboardExpand all lines: extensions/resteasy-reactive/rest/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/UnwrappedExceptionBuildItem.java
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,30 @@
5
5
/**
6
6
* When an {@link Exception} of this type is thrown and no {@code jakarta.ws.rs.ext.ExceptionMapper} exists,
7
7
* then RESTEasy Reactive will attempt to locate an {@code ExceptionMapper} for the cause of the Exception.
8
+
* <p>
9
+
* When {@code always} is {@code true}, unwrapping occurs even if an {@code ExceptionMapper} exists for one
10
+
* of the class super classes, but not if the exception is directly mapped.
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/UnwrapException.java
+34-3Lines changed: 34 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,32 @@
8
8
/**
9
9
* Used to configure that an exception (or exceptions) should be unwrapped during exception handling.
10
10
* <p>
11
-
* Unwrapping means that when an {@link Exception} of the configured type is thrown and no
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ExceptionMapping.java
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/RuntimeExceptionMapper.java
0 commit comments