Index Documentation

IErrorHandler
in

Represents an error message handler for building HTTP response messages.

Table of Contents

Methods

handle()  : void
Applies an error message template to the provided HTTP response builder.

Methods

handle()

Applies an error message template to the provided HTTP response builder.

public handle(HttpResponseBuilder $response, HttpRequest $request, int $code, string $message) : void
Parameters
$response : HttpResponseBuilder

HTTP Response builder to apply this error to.

$request : HttpRequest

HTTP Request this error is a response to.

$code : int

HTTP status code to apply.

$message : string

HTTP status message to apply.


        
On this page

Search results