Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ExceptionFound.php

Namespace

Egulias\EmailValidator\Result\Reason

File

vendor/egulias/email-validator/src/Result/Reason/ExceptionFound.php

View source
<?php

namespace Egulias\EmailValidator\Result\Reason;

class ExceptionFound implements Reason {
    
    /**
     * @var \Exception
     */
    private $exception;
    public function __construct(\Exception $exception) {
        $this->exception = $exception;
    }
    public function code() : int {
        return 999;
    }
    public function description() : string {
        return $this->exception
            ->getMessage();
    }

}

Classes

Title Deprecated Summary
ExceptionFound

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal