Package 

Object UseCaseErrorHandler


  • 
    public class UseCaseErrorHandler
    
                        

    This object is used for global handling and logging of errors that are thrown in the use case execution.

    • Method Summary

      Modifier and Type Method Description
      final Function1<Throwable, Unit> getGlobalOnErrorLogger() Lambda expression that is invoked every time when an error is propagated to the subscriber.
      final Unit setGlobalOnErrorLogger(Function1<Throwable, Unit> globalOnErrorLogger) Lambda expression that is invoked every time when an error is propagated to the subscriber.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getGlobalOnErrorLogger

         final Function1<Throwable, Unit> getGlobalOnErrorLogger()

        Lambda expression that is invoked every time when an error is propagated to the subscriber. It should be used for the global logging of error events of use cases.

      • setGlobalOnErrorLogger

         final Unit setGlobalOnErrorLogger(Function1<Throwable, Unit> globalOnErrorLogger)

        Lambda expression that is invoked every time when an error is propagated to the subscriber. It should be used for the global logging of error events of use cases.