index/src/Http/Routing/ErrorHandling/ErrorHandler.php

20 lines
484 B
PHP

<?php
// ErrorHandler.php
// Created: 2024-03-28
// Updated: 2025-03-07
namespace Index\Http\Routing\ErrorHandling;
use Index\Http\Routing\HandlerContext;
/**
* Represents an error message handler for building HTTP response messages.
*/
interface ErrorHandler {
/**
* Applies an error message template to the provided HTTP response builder.
*
* @param HandlerContext $context Route context.
*/
public function handle(HandlerContext $context): void;
}