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 ServerFailure
createServerFailure(java.lang.Throwable throwable)
Generates aServerFailure
based on the information contained in the receivedexception
.
-
-
-
Method Detail
-
createServerFailure
public ServerFailure createServerFailure(java.lang.Throwable throwable)
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:
DefaultExceptionHandler
-
-