org.cruxframework.crux.core.server.rest.core.dispatch
Class RestErrorHandlerImpl

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandler
      extended by org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandlerImpl

public class RestErrorHandlerImpl
extends RestErrorHandler

Author:
Thiago da Rosa de Bustamante

Field Summary
 
Fields inherited from class org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandler
method
 
Constructor Summary
RestErrorHandlerImpl()
           
 
Method Summary
 Object handleError(InvocationTargetException e)
          When an error occurs during a REST service invocation, a RestErrorHandler is called to handle this error.
 
Methods inherited from class org.cruxframework.crux.core.server.rest.core.dispatch.RestErrorHandler
getRestExceptionTypes, isCheckedException, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestErrorHandlerImpl

public RestErrorHandlerImpl()
Method Detail

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 © 2015. All rights reserved.