2026-06-14 21:32:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-15 18:10:28 +01:00
|
|
|
namespace Domain\Exceptions;
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|