org.codegist.crest.handler
Class ErrorDelegatorHandler
java.lang.Object
org.codegist.crest.handler.ErrorDelegatorHandler
- All Implemented Interfaces:
- ErrorHandler
public class ErrorDelegatorHandler
- extends Object
- implements ErrorHandler
Error handler that always delegate the given exception to the caller.
- Author:
- Laurent Gilles (laurent.gilles@codegist.org)
ErrorDelegatorHandler
public ErrorDelegatorHandler()
handle
public <T> T handle(ResponseContext context,
Exception e)
throws Exception
- Specified by:
handle
in interface ErrorHandler
- Type Parameters:
T
- Expected return type- Parameters:
context
- Current response context. Inner HttpResponse if not guaranteed to be available as an error could have occured during request generation lifecycle step.e
- Exception occured
- Returns:
- any value of the expected error type when exception is ignored
- Throws:
Exception
- Any thrown exception while be delegated to the client using the relative rest interface.- See Also:
ErrorHandler
Copyright © 2011. All Rights Reserved.