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