OAuthErrorException.php 429 B

12345678910111213141516171819
  1. <?php
  2. namespace Stripe\Exception\OAuth;
  3. /**
  4. * Implements properties and methods common to all (non-SPL) Stripe OAuth
  5. * exceptions.
  6. */
  7. abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException
  8. {
  9. protected function constructErrorObject()
  10. {
  11. if (null === $this->jsonBody) {
  12. return null;
  13. }
  14. return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
  15. }
  16. }