modern-events-calendar-lite/app/api/Stripe/Exception/OAuth/OAuthErrorException.php

20 lines
448 B
PHP
Raw Normal View History

2024-10-15 12:04:03 +02:00
<?php
namespace Stripe\Exception\OAuth;
/**
* Implements properties and methods common to all (non-SPL) Stripe OAuth
* exceptions.
*/
abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException
{
protected function constructErrorObject()
{
if (null === $this->jsonBody) {
return null;
}
return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
}
}