Pair\Exceptions\CriticalException handles fatal framework/application failures.
Pair\Exceptions\CriticalException
__construct(string $message, int $code = 0, ?Throwable $previous = null):
__construct(string $message, int $code = 0, ?Throwable $previous = null)
CriticalException::terminate(...)
terminate(string $message, int $code = 0): void
TemplateRenderer
Internal fallback search in templates:
500.php
default.php
If no template exists, execution stops with fatal message.
use Pair\Exceptions\CriticalException; use Pair\Exceptions\ErrorCodes; throw new CriticalException('Configuration file missing', ErrorCodes::LOADING_ENV_FILE);
See also: PairException, TemplateRenderer, ErrorCodes.
There was an error while loading. Please reload this page.