Class DefaultExceptionHandler
- java.lang.Object
-
- com.google.web.bindery.requestfactory.server.DefaultExceptionHandler
-
- All Implemented Interfaces:
ExceptionHandler
public class DefaultExceptionHandler extends java.lang.Object implements ExceptionHandler
Default implementation for handling exceptions thrown while processing a request. Suppresses stack traces and the exception class name.
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerFailurecreateServerFailure(java.lang.Throwable throwable)Generates aServerFailurebased on the information contained in the receivedexception.
-
-
-
Method Detail
-
createServerFailure
public ServerFailure createServerFailure(java.lang.Throwable throwable)
Description copied from interface:ExceptionHandlerGenerates aServerFailurebased on the information contained in the receivedexception.- Specified by:
createServerFailurein interfaceExceptionHandler- Parameters:
throwable- a Throwable instance- Returns:
- a
ServerFailureinstance - See Also:
DefaultExceptionHandler
-
-