code: protected function getErrorsInCategory($category)
      {
          $errors = $this->errorHandler->get('errors');
          $errorsInCat = array();
          foreach ($errors as $err) {
              if ($err['category'] == $category && $err['inConsole']) {
                  $errorsInCat[] = $err;
              }
          }
          return $errorsInCat;
      }
docs: Get the error for the given category
  
  @param string $category error category
  
  @return Event[]