error method

Hook error()

Initialize error hooks Error hooks are ran for each errors

Implementation

Hook error() {
  final hook = Hook()..groups(['*']);
  _errors.add(hook);
  return hook;
}