onError property

Object Function([Object?])? get onError

The handler to invoke when route handlers throw an error.

Implementation

_i2.Object Function([_i2.Object?])? get onError =>
    ([_i2.Object? p0]) => _i3.callMethod(
          _i3.getProperty(
            this,
            'onError',
          ),
          r'call',
          [
            this,
            p0,
          ],
        );
set onError (Object value([Object?])?)

Implementation

set onError(_i2.Object Function([_i2.Object?])? value) {
  _i3.setProperty(
    this,
    'onError',
    value == null ? _i6.undefined : _i3.allowInterop(value),
  );
}