mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
28 lines
512 B
PHP
28 lines
512 B
PHP
|
<?php
|
||
|
|
||
|
class Stripe_Error extends Exception
|
||
|
{
|
||
|
public function __construct($message=null, $http_status=null, $http_body=null, $json_body=null)
|
||
|
{
|
||
|
parent::__construct($message);
|
||
|
$this->http_status = $http_status;
|
||
|
$this->http_body = $http_body;
|
||
|
$this->json_body = $json_body;
|
||
|
}
|
||
|
|
||
|
public function getHttpStatus()
|
||
|
{
|
||
|
return $this->http_status;
|
||
|
}
|
||
|
|
||
|
public function getHttpBody()
|
||
|
{
|
||
|
return $this->http_body;
|
||
|
}
|
||
|
|
||
|
public function getJsonBody()
|
||
|
{
|
||
|
return $this->json_body;
|
||
|
}
|
||
|
}
|