code: public function getErrors()
      {
          $errors = [];
  
          foreach ($this->factories as $factory) {
              foreach ($factory->getErrors() as $code => $message) {
                  $errors[$code] = $message;
              }
          }
  
          return $errors;
      }
docs: Get errors
  
  @return array