Class DefaultExceptionHandler
java.lang.Object
com.google.web.bindery.requestfactory.server.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
Default implementation for handling exceptions thrown while processing a
request. Suppresses stack traces and the exception class name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServerFailure(Throwable throwable) Generates aServerFailurebased on the information contained in the receivedexception.
-
Constructor Details
-
DefaultExceptionHandler
public DefaultExceptionHandler()
-
-
Method Details
-
createServerFailure
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:
-