com.atlassian.bamboo.plugins.rest.common.exception
Class BambooRuntimeExceptionMapper

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.common.exception.BambooRuntimeExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.RuntimeException>

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

An exception mapper that will map any runtime exception. Handles the special case of WebApplicationException, which provides its own response.


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

Constructor Detail

BambooRuntimeExceptionMapper

public BambooRuntimeExceptionMapper()
Method Detail

toResponse

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


Copyright © 2012 Atlassian. All Rights Reserved.