. * * ========================= * * This file contains AuthException class * * @category Common * @package DmarcSrg * @author Aleksey Andreev (liuch) * @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 */ namespace Liuch\DmarcSrg\Exception; /** * Represents an authentication error */ class AuthException extends SoftException { private $auth_type = ''; public function __construct(string $message = '', int $code = -1, string $auth_type = '') { parent::__construct($message, $code); $this->auth_type = $auth_type; } public function getAuthType(): string { return $this->auth_type; } }