Package io.nflow.engine.exception
Class ExceptionHandling.Builder<T extends ExceptionHandling.Builder<T>>
java.lang.Object
io.nflow.engine.exception.ExceptionHandling.Builder<T>
- Direct Known Subclasses:
DispatcherExceptionHandling.Builder,StateProcessExceptionHandling.Builder,StateSaveExceptionHandling.Builder
- Enclosing class:
ExceptionHandling
public abstract static class ExceptionHandling.Builder<T extends ExceptionHandling.Builder<T>>
extends Object
Builder for exception handling settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create the exception handling object.abstract TgetThis()Return this.setLogLevel(org.slf4j.event.Level logLevel) Set the log entry level.setLogStackTrace(boolean logStackTrace) Set if exception stack trace should be logged or not.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getThis
Return this.- Returns:
- This.
-
setLogLevel
Set the log entry level. Default is ERROR.- Parameters:
logLevel- The log entry level.- Returns:
- This.
-
setLogStackTrace
Set if exception stack trace should be logged or not. Default is true.- Parameters:
logStackTrace- True to log the exception stack trace, false to log the exception message only.- Returns:
- This.
-
build
Create the exception handling object.- Returns:
- Exception handling.
-