onError method
It's called when an error occurs during the execution of the memoized function.
Implementation
@override
void onError(Memo<T, A> memo, A arg, Object error) {
for (final interceptor in interceptors) {
interceptor.onError(memo, arg, error);
}
}