initial commit
This commit is contained in:
18
app/Data/InvariantException.php
Normal file
18
app/Data/InvariantException.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Data;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class InvariantException extends \InvalidArgumentException
|
||||
{
|
||||
/**
|
||||
* @param array<string> $fields
|
||||
*/
|
||||
public function __construct(string $message, public readonly array $fields, int $code = 0, ?Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user