# give/4.15.4/vendor/stripe/stripe-php/lib/OAuthErrorObject.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.4. 32 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.4/code/vendor/stripe/stripe-php/lib/OAuthErrorObject.php
- Raw: https://pluginprobe.com/plugins/give/4.15.4/raw/vendor/stripe/stripe-php/lib/OAuthErrorObject.php
- Modified: 2021-09-27T12:30:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.15.4/code/vendor/stripe/stripe-php/lib/OAuthErrorObject.php#L10-L20`.

```php
<?php

namespace Stripe;

/**
 * Class OAuthErrorObject.
 *
 * @property string $error
 * @property string $error_description
 */
class OAuthErrorObject extends StripeObject
{
    /**
     * Refreshes this object using the provided values.
     *
     * @param array $values
     * @param null|array|string|Util\RequestOptions $opts
     * @param bool $partial defaults to false
     */
    public function refreshFrom($values, $opts, $partial = false)
    {
        // Unlike most other API resources, the API will omit attributes in
        // error objects when they have a null value. We manually set default
        // values here to facilitate generic error handling.
        $values = \array_merge([
            'error' => null,
            'error_description' => null,
        ], $values);
        parent::refreshFrom($values, $opts, $partial);
    }
}

```
