Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/externals/stripe-php/lib/Stripe/Error.php
12256 views
1
<?php
2
3
class Stripe_Error extends Exception
4
{
5
public function __construct($message, $httpStatus=null,
6
$httpBody=null, $jsonBody=null
7
)
8
{
9
parent::__construct($message);
10
$this->httpStatus = $httpStatus;
11
$this->httpBody = $httpBody;
12
$this->jsonBody = $jsonBody;
13
}
14
15
public function getHttpStatus()
16
{
17
return $this->httpStatus;
18
}
19
20
public function getHttpBody()
21
{
22
return $this->httpBody;
23
}
24
25
public function getJsonBody()
26
{
27
return $this->jsonBody;
28
}
29
}
30
31