Index Documentation

PlainErrorHandler
in package
implements IErrorHandler

Represents a plain text error message handler for building HTTP response messages.

Table of Contents

Interfaces

IErrorHandler
Represents an error message handler for building HTTP response messages.

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