Nexus API Reference

GenericHttpException extends HttpException
in package

FinalYes
Tags
psalm-api

Concrete carrier used by HttpException factory methods. HttpException itself is abstract per project coding standards; this class exists so factories can instantiate a concrete value.

Table of Contents

Properties

$headers  : array<string|int, mixed>
$status  : int

Methods

__construct()  : mixed
conflict()  : self
forbidden()  : self
notFound()  : self
unauthorized()  : self
unprocessableEntity()  : self

Properties

$headers read-only

public array<string|int, mixed> $headers = []

Methods

__construct()

public __construct(int $status[, string $message = '' ][, array<string, string> $headers = [] ][, Throwable|null $previous = null ]) : mixed
Parameters
$status : int
$message : string = ''
$headers : array<string, string> = []
$previous : Throwable|null = null

conflict()

public static conflict([string $message = 'Conflict' ]) : self
Parameters
$message : string = 'Conflict'
Return values
self

forbidden()

public static forbidden([string $message = 'Forbidden' ]) : self
Parameters
$message : string = 'Forbidden'
Return values
self

notFound()

public static notFound([string $message = 'Not Found' ]) : self
Parameters
$message : string = 'Not Found'
Return values
self

unauthorized()

public static unauthorized([string $message = 'Unauthorized' ]) : self
Parameters
$message : string = 'Unauthorized'
Return values
self

unprocessableEntity()

public static unprocessableEntity(array<string, string> $errors) : self
Parameters
$errors : array<string, string>
Return values
self

        
On this page

Search results