Skip to content

Commit be2baa0

Browse files
authored
Documentation for the default Exception mapper
Signed-off-by: Maxim Nesen <[email protected]>
1 parent 7e7701b commit be2baa0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/src/main/docbook/jersey.ent

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@
370370
<!ENTITY jersey.common.CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT "<link xlink:href='&jersey.javadoc.uri.prefix;/CommonProperties.html#OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT'>CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT</link>" >
371371
<!ENTITY jersey.common.CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER "<link xlink:href='&jersey.javadoc.uri.prefix;/CommonProperties.html#OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER'>CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER</link>" >
372372
<!ENTITY jersey.common.CommonProperties.PROVIDER_DEFAULT_DISABLE "<link xlink:href='&jersey.javadoc.uri.prefix;/CommonProperties.html#PROVIDER_DEFAULT_DISABLE'>CommonProperties.PROVIDER_DEFAULT_DISABLE</link>" >
373-
<!ENTITY jersey.common.internal.DefaultExceptionMapper "<link xlink:href='&jersey.javadoc.uri.prefix;/internal/DefaultExceptionMapper.html'>DefaultExceptionMapper</link>">
374373
<!ENTITY jersey.common.internal.inject.DisposableSupplier "<link xlink:href='&jersey.javadoc.uri.prefix;/internal/inject/DisposableSupplier.html'>DisposableSupplier</link>">
375374
<!ENTITY jersey.common.internal.inject.InjectionManager "<link xlink:href='&jersey.javadoc.uri.prefix;/internal/inject/InjectionManager.html'>InjectionManager</link>">
376375
<!ENTITY jersey.common.internal.inject.AbstractBinder "<link xlink:href='&jersey.javadoc.uri.prefix;/internal/inject/AbstractBinder.html'>AbstractBinder</link>">

docs/src/main/docbook/representations.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,16 @@ public class EntityNotFoundMapper implements ExceptionMapper&lt;jakarta.persiste
299299
</para>
300300

301301
<para>
302-
Since Jersey 3.1.0 the &jersey.common.internal.DefaultExceptionMapper; is implemented.
302+
Since Jersey 3.1.0 the default <literal>ExceptionMapper</literal> is implemented.
303303
It is required by JAX-RS 3.1 specification (&jaxrs31.exceptionMapperProvider;).
304304
The default behaviour of the mapper is to return a message from an exception caught and set the response status
305305
to 500 (internal server error). In case of a &jaxrs.WebApplicationException; with a response that response is returned.
306306
If response inside the &lit.jaxrs.WebApplicationException; is NULL the exception is being processed according to the
307307
default behaviour.
308+
309+
The Default exception mapper is package private and can not be referenced. Its presence is required only by
310+
JAX-RS 3.1 specification. Processing of the default Exception Mapper occurs at the very end of the exception
311+
processing chain. It is invoked only if nothing else in the chain was invoked before.
308312
</para>
309313

310314
</section>

0 commit comments

Comments
 (0)