12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- class ServerException extends ClientException
- {
-
- private $httpStatus;
-
- private $requestId;
-
- public 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;
- }
- }
|