2012-04-05 01:09:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Stripe_Error extends Exception
|
|
|
|
{
|
2014-07-13 18:19:07 +02:00
|
|
|
public function __construct($message, $httpStatus=null,
|
|
|
|
$httpBody=null, $jsonBody=null
|
|
|
|
)
|
2012-04-05 01:09:29 +02:00
|
|
|
{
|
|
|
|
parent::__construct($message);
|
2014-07-13 18:19:07 +02:00
|
|
|
$this->httpStatus = $httpStatus;
|
|
|
|
$this->httpBody = $httpBody;
|
|
|
|
$this->jsonBody = $jsonBody;
|
2012-04-05 01:09:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHttpStatus()
|
|
|
|
{
|
2014-07-13 18:19:07 +02:00
|
|
|
return $this->httpStatus;
|
2012-04-05 01:09:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHttpBody()
|
|
|
|
{
|
2014-07-13 18:19:07 +02:00
|
|
|
return $this->httpBody;
|
2012-04-05 01:09:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getJsonBody()
|
|
|
|
{
|
2014-07-13 18:19:07 +02:00
|
|
|
return $this->jsonBody;
|
2012-04-05 01:09:29 +02:00
|
|
|
}
|
|
|
|
}
|