Files
dolibarr/htdocs/includes/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
2021-01-03 23:37:44 +01:00

20 lines
429 B
PHP

<?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);
}
}