<?php
namespace StripeExceptionOAuth;
/**
* Implements properties and methods common to all (non-SPL) Stripe OAuth
* exceptions.
*/
abstract class OAuthErrorException extends StripeExceptionApiErrorException
{
protected function constructErrorObject()
{
if (null === $this->jsonBody) {
return null;
}
return StripeOAuthErrorObject::constructFrom($this->jsonBody);
}
}