public static class ExceptionHandler.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExceptionHandler.Builder |
abortOn(Class<? extends Exception>... exceptions) |
ExceptionHandler |
build()
Returns a new instance of ExceptionHandler
|
ExceptionHandler.Builder |
retryOn(Class<? extends Exception>... exceptions) |
@SafeVarargs public final ExceptionHandler.Builder retryOn(Class<? extends Exception>... exceptions)
exceptions - retry should continue when such exceptions are thrown@SafeVarargs public final ExceptionHandler.Builder abortOn(Class<? extends Exception>... exceptions)
exceptions - retry should abort when such exceptions are thrownpublic ExceptionHandler build()
Copyright © 2016 Google. All rights reserved.