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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ExceptionHandlingbuild()Create the exception handling object.abstract TgetThis()Return this.TsetLogLevel(org.slf4j.event.Level logLevel)Set the log entry level.TsetLogStackTrace(boolean logStackTrace)Set if exception stack trace should be logged or not.
-
-
-
Method Detail
-
getThis
public abstract T getThis()
Return this.- Returns:
- This.
-
setLogLevel
public T setLogLevel(org.slf4j.event.Level logLevel)
Set the log entry level. Default is ERROR.- Parameters:
logLevel- The log entry level.- Returns:
- This.
-
setLogStackTrace
public T setLogStackTrace(boolean logStackTrace)
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
public ExceptionHandling build()
Create the exception handling object.- Returns:
- Exception handling.
-
-