java.lang.Object | |
↳ | com.atlassian.jira.rest.exception.ExceptionInterceptor |
This interceptor creates responses for any exceptions thrown from a resource method.
When creating a response, the client'sAccept
header is matched to the resource's javax.ws.rs.Produces annotations and the first matching media type is used.
See JRADEV-2862 and JRADEV-3240.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new ExceptionInterceptor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Intercepts the method invocation, setting the media type correctly in case of an exception.
|
[Expand]
Inherited Methods | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||
From interface
com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor
|
Creates a new ExceptionInterceptor.
i18n | a I18nHelper |
---|
Intercepts the method invocation, setting the media type correctly in case of an exception.
invocation | Context information about the invocation |
---|