|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Documented
@Beta
public @interface ErrorTemplateUsed to annotate JAX-RS resources and resource methods to provide reference to an error template if an exception has been raised during processing a request (resource method invocation).
The processing of this annotation is similar to the processing ofTemplate annotation with the difference that the
thrown exception (or an object derived from the exception) is used as a model for the defined template.
By default every exception is mapped to a viewable and passed to the MVC runtime for further processing.
Note: The ErrorTemplate annotation can be used even in case when neither viewable is used as return
value of a resource method nor Template annotation is used to annotate the resource method or resource class.
Template,
AbstractErrorTemplateMapper| Optional Element Summary | |
|---|---|
String |
name
The template name that should be used to display an error raised during processing a request. |
public abstract String name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||