123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace Pingpp\Error;
- use Exception;
- abstract class Base extends Exception
- {
- public function __construct($message, $httpStatus=null,
- $httpBody=null, $jsonBody=null
- )
- {
- parent::__construct($message);
- $this->httpStatus = $httpStatus;
- $this->httpBody = $httpBody;
- $this->jsonBody = $jsonBody;
- }
- public function getHttpStatus()
- {
- return $this->httpStatus;
- }
- public function getHttpBody()
- {
- return $this->httpBody;
- }
- public function getJsonBody()
- {
- return $this->jsonBody;
- }
- }
|