Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A simple text error message can also be optionally reported, by setting an 'addMessageToResponse' property to 'true', example:

Code Block
languagexml
<bean id="exceptionMapper" class="org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper">
   <property name="addMessageToResponse" value="true" />
</bean>


Note that the custom WebApplicationException mapper, if registered, will be preferred to the default one.

...