org.cruxframework.crux.core.server.rest.core.dispatch
Class RestErrorHandlerImpl
java.lang.Object
org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandler
org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandlerImpl
public class RestErrorHandlerImpl
- extends RestErrorHandler
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestErrorHandlerImpl
public RestErrorHandlerImpl()
handleError
public Object handleError(InvocationTargetException e)
throws RestFailure
- Description copied from class:
RestErrorHandler
- When an error occurs during a REST service invocation, a RestErrorHandler is called to handle this error.
This method must take the exception and throw a RestFailure to wrap the error or return an object that
will be serialized as response given from the service to the caller.
- Specified by:
handleError in class RestErrorHandler
- Returns:
-
- Throws:
RestFailure
Copyright © 2014. All rights reserved.