| @@ 5-23 (lines=19) @@ | ||
| 2 | ||
| 3 | namespace Stripe\Error; |
|
| 4 | ||
| 5 | class InvalidRequest extends Base |
|
| 6 | { |
|
| 7 | public function __construct( |
|
| 8 | $message, |
|
| 9 | $stripeParam, |
|
| 10 | $httpStatus = null, |
|
| 11 | $httpBody = null, |
|
| 12 | $jsonBody = null, |
|
| 13 | $httpHeaders = null |
|
| 14 | ) { |
|
| 15 | parent::__construct($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders); |
|
| 16 | $this->stripeParam = $stripeParam; |
|
| 17 | } |
|
| 18 | ||
| 19 | public function getStripeParam() |
|
| 20 | { |
|
| 21 | return $this->stripeParam; |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||
| @@ 5-23 (lines=19) @@ | ||
| 2 | ||
| 3 | namespace Stripe\Error\OAuth; |
|
| 4 | ||
| 5 | class OAuthBase extends \Stripe\Error\Base |
|
| 6 | { |
|
| 7 | public function __construct( |
|
| 8 | $code, |
|
| 9 | $description, |
|
| 10 | $httpStatus = null, |
|
| 11 | $httpBody = null, |
|
| 12 | $jsonBody = null, |
|
| 13 | $httpHeaders = null |
|
| 14 | ) { |
|
| 15 | parent::__construct($description, $httpStatus, $httpBody, $jsonBody, $httpHeaders); |
|
| 16 | $this->errorCode = $code; |
|
| 17 | } |
|
| 18 | ||
| 19 | public function getErrorCode() |
|
| 20 | { |
|
| 21 | return $this->errorCode; |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||