summaryrefslogblamecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
blob: bded3c8893bd6c043df0cbd20c90df3ef8d9254c (plain) (tree)


















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