com.atlassian.plugins.rest.common.error.jersey
Class ThrowableExceptionMapper

java.lang.Object
  extended by com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>

@Provider
public class ThrowableExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>

A generic exception mapper that will map any throwable. Handles the special case of WebApplicationException, which provides its own response.

Since:
1.0

Constructor Summary
ThrowableExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableExceptionMapper

public ThrowableExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(java.lang.Throwable t)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>


Copyright © 2014 Atlassian. All Rights Reserved.