// +---------------------------------------------------------------------- declare(strict_types=1); namespace crmeb\exceptions; use Exception; /** * 授权异常 * 各端授权共用 * @package crmeb\exceptions */ class OAuthException extends Exception { /** * @var array */ protected $raw; public function __construct($message = "", $code = 0, $raw = []) { parent::__construct($message, $code); $this->raw = $raw; } /** * 获取原始数据 * @return array */ public function getRaw() { return $this->raw; } }