errorCode = $errorCode; $this->errorData = $errorData; parent::__construct($message, $errorCode); } /** * 获取错误码 * @return int */ public function getErrorCode() { return $this->errorCode; } /** * 获取错误数据 * @return mixed */ public function getErrorData() { return $this->errorData; } }