Changeset View
Changeset View
Standalone View
Standalone View
externals/stripe-php/lib/Stripe/Error.php
| <?php | <?php | ||||
| class Stripe_Error extends Exception | class Stripe_Error extends Exception | ||||
| { | { | ||||
| public function __construct($message=null, $http_status=null, $http_body=null, $json_body=null) | public function __construct($message, $httpStatus=null, | ||||
| $httpBody=null, $jsonBody=null | |||||
| ) | |||||
| { | { | ||||
| parent::__construct($message); | parent::__construct($message); | ||||
| $this->http_status = $http_status; | $this->httpStatus = $httpStatus; | ||||
| $this->http_body = $http_body; | $this->httpBody = $httpBody; | ||||
| $this->json_body = $json_body; | $this->jsonBody = $jsonBody; | ||||
| } | } | ||||
| public function getHttpStatus() | public function getHttpStatus() | ||||
| { | { | ||||
| return $this->http_status; | return $this->httpStatus; | ||||
| } | } | ||||
| public function getHttpBody() | public function getHttpBody() | ||||
| { | { | ||||
| return $this->http_body; | return $this->httpBody; | ||||
| } | } | ||||
| public function getJsonBody() | public function getJsonBody() | ||||
| { | { | ||||
| return $this->json_body; | return $this->jsonBody; | ||||
| } | } | ||||
| } | } | ||||