-
public class UseCaseErrorHandlerThis object is used for global handling and logging of errors that are thrown in the use case execution.
-
-
Field Summary
Fields Modifier and Type Field Description private Function1<Throwable, Unit>globalOnErrorLoggerpublic final static UseCaseErrorHandlerINSTANCE
-
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 UnitsetGlobalOnErrorLogger(Function1<Throwable, Unit>Â globalOnErrorLogger)Lambda expression that is invoked every time when an error is propagated to the subscriber. -
-
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.
-
-
-
-