Back to MailDisabledException class

Method __construct

public
__construct
(string $reason, string $message = '', int $code = 0, \Throwable $previous = null)
Constructor.
Parameters
  • string $reason The reason why mail is disabled.
  • string $message The Exception message to throw.
  • int $code The Exception code.
  • \Throwable $previous The previous exception used for the exception chaining.
Since
  • 4.0.0

Method __construct - Source code

/**
 * Constructor.
 *
 * @param   string      $reason    The reason why mail is disabled.
 * @param   string      $message   The Exception message to throw.
 * @param   integer     $code      The Exception code.
 * @param   \Throwable  $previous  The previous exception used for the exception chaining.
 *
 * @since   4.0.0
 */
public function __construct(string $reason, string $message = '', int $code = 0, \Throwable $previous = null)
{
    parent::__construct($message, $code, $previous);
    $this->reason = $reason;
}