# give/4.16.9/src/Donors/Exceptions/FailedDonorUserCreationException.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 22 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Donors/Exceptions/FailedDonorUserCreationException.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Donors/Exceptions/FailedDonorUserCreationException.php
- Modified: 2023-12-06T20:03:58+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.16.9/code/src/Donors/Exceptions/FailedDonorUserCreationException.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Give\Donors\Exceptions;

use Give\Donors\Models\Donor;
use Give\Framework\Exceptions\Primitives\Exception;

/**
 * @since 3.2.0
 */
class FailedDonorUserCreationException extends Exception
{
    protected $donor;

    public function __construct( Donor $donor = null, $code = 0, $previous = null ) {
        parent::__construct('Failed creating a user for the donor.', $code, $previous);
        $this->donor = $donor;
    }
}

```
