PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / stripe / stripe-php / lib / Exception / InvalidRequestException.php
ameliabooking / vendor / stripe / stripe-php / lib / Exception Last commit date
OAuth 6 months ago ApiConnectionException.php 6 months ago ApiErrorException.php 6 months ago AuthenticationException.php 6 months ago BadMethodCallException.php 6 months ago CardException.php 6 months ago ExceptionInterface.php 6 months ago IdempotencyException.php 6 months ago InvalidArgumentException.php 6 months ago InvalidRequestException.php 6 months ago PermissionException.php 6 months ago RateLimitException.php 6 months ago SignatureVerificationException.php 6 months ago TemporarySessionExpiredException.php 6 months ago UnexpectedValueException.php 6 months ago UnknownApiErrorException.php 6 months ago
InvalidRequestException.php
61 lines
1 <?php
2
3 namespace AmeliaVendor\Stripe\Exception;
4
5 /**
6 * InvalidRequestException is thrown when a request is initiated with invalid
7 * parameters.
8 */
9 class InvalidRequestException extends ApiErrorException
10 {
11 protected $stripeParam;
12
13 /**
14 * Creates a new InvalidRequestException exception.
15 *
16 * @param string $message the exception message
17 * @param null|int $httpStatus the HTTP status code
18 * @param null|string $httpBody the HTTP body as a string
19 * @param null|array $jsonBody the JSON deserialized body
20 * @param null|array|\AmeliaVendor\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
21 * @param null|string $stripeCode the Stripe error code
22 * @param null|string $stripeParam the parameter related to the error
23 *
24 * @return InvalidRequestException
25 */
26 public static function factory(
27 $message,
28 $httpStatus = null,
29 $httpBody = null,
30 $jsonBody = null,
31 $httpHeaders = null,
32 $stripeCode = null,
33 $stripeParam = null
34 ) {
35 $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
36 $instance->setStripeParam($stripeParam);
37
38 return $instance;
39 }
40
41 /**
42 * Gets the parameter related to the error.
43 *
44 * @return null|string
45 */
46 public function getStripeParam()
47 {
48 return $this->stripeParam;
49 }
50
51 /**
52 * Sets the parameter related to the error.
53 *
54 * @param null|string $stripeParam
55 */
56 public function setStripeParam($stripeParam)
57 {
58 $this->stripeParam = $stripeParam;
59 }
60 }
61