FailedDonorUserCreationException.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Give\Donors\Exceptions; |
| 6 | |
| 7 | use Give\Donors\Models\Donor; |
| 8 | use Give\Framework\Exceptions\Primitives\Exception; |
| 9 | |
| 10 | /** |
| 11 | * @since 3.2.0 |
| 12 | */ |
| 13 | class FailedDonorUserCreationException extends Exception |
| 14 | { |
| 15 | protected $donor; |
| 16 | |
| 17 | public function __construct( Donor $donor = null, $code = 0, $previous = null ) { |
| 18 | parent::__construct('Failed creating a user for the donor.', $code, $previous); |
| 19 | $this->donor = $donor; |
| 20 | } |
| 21 | } |
| 22 |