org.hudsonci.rest.api.internal
Class GenericExceptionMapper

java.lang.Object
  extended by org.hudsonci.rest.api.internal.GenericExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>

@Provider
public class GenericExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Exception>

Generates FaultDTO responses for generic Exceptions. This should catch unhandled cases where the REST API can not properly handle a request. The logged ID can be used to match up client/server to allow for better debugging.

Since:
2.1.0
Author:
Jason Dillon

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

Constructor Detail

GenericExceptionMapper

public GenericExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(Exception cause)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Exception>


Copyright © 2004-2011 Hudson. All Rights Reserved.