@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Documented public @interface ErrorTemplate
Template
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
public abstract String name
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.