Package arez
Interface ObserverErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@OmitType(unless="arez.enable_observer_error_handlers")
public interface ObserverErrorHandler
Interface for handling errors in observers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onObserverError
(Observer observer, ObserverError error, Throwable throwable) Report an error in observer.
-
Method Details
-
onObserverError
void onObserverError(@Nonnull Observer observer, @Nonnull ObserverError error, @Nullable Throwable throwable) Report an error in observer.- Parameters:
observer
- the observer that generated error.error
- the type of the error.throwable
- the exception that caused error if any.
-