It's called when an error occurs during the execution of the memoized function.
void onError(Memo<T, A> memo, A arg, Object error) {}