Initial Commit
This commit is contained in:
18
dependencies/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
vendored
Normal file
18
dependencies/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* Implements properties and methods common to all (non-SPL) Stripe OAuth
|
||||
* exceptions.
|
||||
*/
|
||||
abstract class OAuthErrorException extends \WP_Ultimo\Dependencies\Stripe\Exception\ApiErrorException
|
||||
{
|
||||
protected function constructErrorObject()
|
||||
{
|
||||
if (null === $this->jsonBody) {
|
||||
return null;
|
||||
}
|
||||
return \WP_Ultimo\Dependencies\Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user