RouteNotFoundException
extends HttpException
in package
FinalYes
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- conflict() : self
- forbidden() : self
- notFound() : self
- unauthorized() : self
- unprocessableEntity() : self
Properties
$headers read-only
public
array<string|int, mixed>
$headers
= []
$status read-only
public
int
$status
Methods
__construct()
public
__construct(string $method, string $path) : mixed
Parameters
- $method : string
- $path : string
conflict()
public
static conflict([string $message = 'Conflict' ]) : self
Parameters
- $message : string = 'Conflict'
Return values
selfforbidden()
public
static forbidden([string $message = 'Forbidden' ]) : self
Parameters
- $message : string = 'Forbidden'
Return values
selfnotFound()
public
static notFound([string $message = 'Not Found' ]) : self
Parameters
- $message : string = 'Not Found'
Return values
selfunauthorized()
public
static unauthorized([string $message = 'Unauthorized' ]) : self
Parameters
- $message : string = 'Unauthorized'
Return values
selfunprocessableEntity()
public
static unprocessableEntity(array<string, string> $errors) : self
Parameters
- $errors : array<string, string>