16 lines
361 B
PHP
16 lines
361 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
class WalletInsufficientFundsException extends RuntimeException
|
|
{
|
|
public function __construct(
|
|
public readonly float $required,
|
|
public readonly float $available,
|
|
) {
|
|
parent::__construct("Solde insuffisant : {$available} EUR disponibles, {$required} EUR requis.");
|
|
}
|
|
}
|