GenericHTTPError.php 589 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Mailgun\Connection\Exceptions;
  3. class GenericHTTPError extends \Exception
  4. {
  5. protected $httpResponseCode;
  6. protected $httpResponseBody;
  7. public function __construct($message=null, $response_code=null, $response_body=null, $code=0, \Exception $previous=null) {
  8. parent::__construct($message, $code, $previous);
  9. $this->httpResponseCode = $response_code;
  10. $this->httpResponseBody = $response_body;
  11. }
  12. public function getHttpResponseCode() {
  13. return $this->httpResponseCode;
  14. }
  15. public function getHttpResponseBody() {
  16. return $this->httpResponseBody;
  17. }
  18. }
  19. ?>