error method

AsyncReply<T> error(
  1. dynamic callback(
    1. AsyncException ex
    )
)

Implementation

AsyncReply<T> error(callback(AsyncException ex)) {
  _errorCallbacks.add(callback);
  if (_exception != null) callback(_exception as AsyncException);

  return this;
}