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 Details

    • Builder

      public Builder()
  • Method Details

    • 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.