uCosminexus Application Server, Web Service Development Guide
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 | ||
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.