ExceptionInterface.php
7 months ago
InvalidClientException.php
7 months ago
InvalidGrantException.php
7 months ago
InvalidRequestException.php
7 months ago
InvalidScopeException.php
7 months ago
OAuthErrorException.php
7 months ago
UnknownOAuthErrorException.php
7 months ago
UnsupportedGrantTypeException.php
7 months ago
UnsupportedResponseTypeException.php
7 months ago
OAuthErrorException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaVendor\Stripe\Exception\OAuth; |
| 4 | |
| 5 | /** |
| 6 | * Implements properties and methods common to all (non-SPL) Stripe OAuth |
| 7 | * exceptions. |
| 8 | */ |
| 9 | abstract class OAuthErrorException extends \AmeliaVendor\Stripe\Exception\ApiErrorException |
| 10 | { |
| 11 | protected function constructErrorObject() |
| 12 | { |
| 13 | if (null === $this->jsonBody) { |
| 14 | return null; |
| 15 | } |
| 16 | |
| 17 | return \AmeliaVendor\Stripe\OAuthErrorObject::constructFrom($this->jsonBody); |
| 18 | } |
| 19 | } |
| 20 |