uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

17.1.5 Exception mapping

If system throws an exception while executing injections into the parameters of the resource method of a root resource class, the parameters of constructor, fields, and bean properties as well as the parameters of the resource method of a sub-resource class, the JAX-RS engine handles those exceptions as described in the following table. For details on the supported Java types and annotations, see 17.1.4 Parameter types.

Table 17-9 Support provided by the JAX-RS engine for the exceptions thrown at injection

No. Annotation Exceptions thrown at injection.
WebApplicationException Other
1 MatrixParam Handles WebApplicationException as explained in 17.1.8 Exception handling Wraps the thrown exception with a non-entity WebApplicationException having the HTTP status code 404. Furthermore, the handling is done as explained in 17.1.8 Exception handling
2 QueryParam
3 PathParam
4 CookieParam Wraps the thrown exception with a non-entity WebApplicationException having the HTTP status code 400 . Furthermore, the handling is done as explained in 17.1. 8 Exception handling
5 FormParam
6 HeaderParam
Note
System throws WebApplicationException only for No. 17 through 21, No. 31 through 36, No. 45 through 50, and No. 59 through 64 from among the parameter types listed in the table describing the types of parameters supporting each annotation in 17.1.4 Parameter types.