@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3class 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}