# charitable/1.8.13/vendor/stripe/stripe-php/lib/OAuthErrorObject.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.8.13. 32 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/vendor/stripe/stripe-php/lib/OAuthErrorObject.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/vendor/stripe/stripe-php/lib/OAuthErrorObject.php
- Modified: 2022-09-21T15:01:56+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/charitable/1.8.13/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);
    }
}

```
