【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-04-28 1e955583470b47f7636eaba800c52c258ac24296
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
 
 
namespace Aliyun\Core\Exception;
 
class ServerException extends ClientException
{
    private $httpStatus;
    private $requestId;
 
    function  __construct($errorMessage, $errorCode, $httpStatus, $requestId)
    {
        $messageStr = $errorCode . " " . $errorMessage . " HTTP Status: " . $httpStatus . " RequestID: " . $requestId;
        parent::__construct($messageStr, $errorCode);
        $this->setErrorMessage($errorMessage);
        $this->setErrorType("Server");
        $this->httpStatus = $httpStatus;
        $this->requestId = $requestId;
    }
 
    public function getHttpStatus()
    {
        return $this->httpStatus;
    }
 
    public function getRequestId()
    {
        return $this->requestId;
    }
 
}