ExceptionInterface.php
4 years ago
InvalidClientException.php
4 years ago
InvalidGrantException.php
4 years ago
InvalidRequestException.php
4 years ago
InvalidScopeException.php
4 years ago
OAuthErrorException.php
4 years ago
UnknownOAuthErrorException.php
4 years ago
UnsupportedGrantTypeException.php
4 years ago
UnsupportedResponseTypeException.php
4 years ago
OAuthErrorException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace 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 \Stripe\Exception\ApiErrorException |
| 10 | { |
| 11 | protected function constructErrorObject() |
| 12 | { |
| 13 | if (null === $this->jsonBody) { |
| 14 | return null; |
| 15 | } |
| 16 | |
| 17 | return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody); |
| 18 | } |
| 19 | } |
| 20 |