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
-
Method Summary
Modifier and TypeMethodDescriptioncreateServerFailure
(Throwable throwable) Generates aServerFailure
based on the information contained in the receivedexception
.
-
Constructor Details
-
DefaultExceptionHandler
public DefaultExceptionHandler()
-
-
Method Details
-
createServerFailure
Description copied from interface:ExceptionHandler
Generates aServerFailure
based on the information contained in the receivedexception
.- Specified by:
createServerFailure
in interfaceExceptionHandler
- Parameters:
throwable
- a Throwable instance- Returns:
- a
ServerFailure
instance - See Also:
-