public final class WebErrorHandlersBuilder extends Object
WebErrorHandlers instances.| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlers |
build()
Creates the
WebErrorHandlers instance from the current builder state. |
WebErrorHandlersBuilder |
withDefaultWebErrorHandler(WebErrorHandler defaultWebErrorHandler)
Represents the default web error handler we're gonna use when all other handlers
refuse to handle an exception.
|
WebErrorHandlersBuilder |
withErrorHandlers(Collection<WebErrorHandler> webErrorHandlers)
Collection of error handlers to consult when facing a new exception.
|
WebErrorHandlersBuilder |
withErrorHandlers(WebErrorHandler... webErrorHandlers)
Collection of error handlers to consult when facing a new exception.
|
WebErrorHandlersBuilder |
withErrorsProperties(ErrorsProperties errorsProperties)
Determines the way we're gonna configure the error handling mechanism.
|
WebErrorHandlersBuilder |
withExceptionLogger(ExceptionLogger exceptionLogger)
Defines a way to logs exceptions before handling them.
|
WebErrorHandlersBuilder |
withExceptionRefiner(ExceptionRefiner exceptionRefiner)
Enables us to refine exceptions before kicking off the exception handling procedure.
|
WebErrorHandlersBuilder |
withFingerprintProvider(FingerprintProvider fingerprintProvider)
Responsible for calculating error fingerprints for handled exceptions.
|
WebErrorHandlersBuilder |
withPostProcessors(Collection<WebErrorHandlerPostProcessor> webErrorHandlerPostProcessors)
Collection of post processors to call after handling any given exception.
|
WebErrorHandlersBuilder |
withPostProcessors(WebErrorHandlerPostProcessor... webErrorHandlerPostProcessors)
Collection of post processors to call after handling any given exception.
|
public WebErrorHandlersBuilder withErrorsProperties(@NonNull ErrorsProperties errorsProperties)
errorsProperties - Non-null instance of ErrorsProperties.
If not provided, default-constructed ErrorsProperties will be used.errorsPropertiespublic WebErrorHandlersBuilder withErrorHandlers(@NonNull Collection<WebErrorHandler> webErrorHandlers)
webErrorHandlers - Non-null collection of WebErrorHandler instances.webErrorHandlerspublic WebErrorHandlersBuilder withErrorHandlers(@NonNull WebErrorHandler... webErrorHandlers)
webErrorHandlers - Varargs array of WebErrorHandler instances.webErrorHandlerspublic WebErrorHandlersBuilder withDefaultWebErrorHandler(@NonNull WebErrorHandler defaultWebErrorHandler)
defaultWebErrorHandler - Non-null instance of WebErrorHandler.
If not provided, LastResortWebErrorHandler will be used.defaultWebErrorHandlerpublic WebErrorHandlersBuilder withExceptionRefiner(@NonNull ExceptionRefiner exceptionRefiner)
exceptionRefiner - Non-null instance of ExceptionRefiner.
If not provided, ExceptionRefiner.NoOp will be used.exceptionRefinerpublic WebErrorHandlersBuilder withExceptionLogger(@NonNull ExceptionLogger exceptionLogger)
exceptionLogger - Non-null instance of ExceptionLogger.
If not provided, ExceptionLogger.NoOp will be used.exceptionLoggerpublic WebErrorHandlersBuilder withPostProcessors(@NonNull Collection<WebErrorHandlerPostProcessor> webErrorHandlerPostProcessors)
webErrorHandlerPostProcessors - Non-null collection of WebErrorHandlerPostProcessor instances.webErrorHandlerPostProcessorspublic WebErrorHandlersBuilder withPostProcessors(@NonNull WebErrorHandlerPostProcessor... webErrorHandlerPostProcessors)
webErrorHandlerPostProcessors - Varargs array of WebErrorHandlerPostProcessor instances.webErrorHandlerPostProcessorspublic WebErrorHandlersBuilder withFingerprintProvider(@NonNull FingerprintProvider fingerprintProvider)
fingerprintProvider - Non-null instance of FingerprintProvider.
If not provided, UuidFingerprintProvider will be used.exceptionLogger@NonNull public WebErrorHandlers build()
WebErrorHandlers instance from the current builder state.WebErrorHandlers.Copyright © 2019. All rights reserved.