ldc-cocotte/domain/Exceptions/AuthServiceException.php

13 lines
312 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Exceptions;
class AuthServiceException extends \RuntimeException
{
public static function of(?string $message = null, ?\Throwable $cause = null): self
{
return new self($message ?? 'An authentication error occurred.', previous: $cause);
}
}