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

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExceptionFound.php

class ExceptionFound

Hierarchy

  • class \Egulias\EmailValidator\Result\Reason\ExceptionFound implements \Egulias\EmailValidator\Result\Reason\Reason

Expanded class hierarchy of ExceptionFound

2 files declare their use of ExceptionFound
MessageIDValidation.php in vendor/egulias/email-validator/src/Validation/MessageIDValidation.php
RFCValidation.php in vendor/egulias/email-validator/src/Validation/RFCValidation.php

File

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

Namespace

Egulias\EmailValidator\Result\Reason
View source
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();
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ExceptionFound::$exception private property
ExceptionFound::code public function Code for user land to act upon; Overrides Reason::code
ExceptionFound::description public function Short description of the result, human readable. Overrides Reason::description
ExceptionFound::__construct public function
RSS feed
Powered by Drupal