HTTPException
extends FrameworkException
in package
Things that can go wrong with HTTP
Table of Contents
- __construct() : mixed
- Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
- forAlreadyMoved() : HTTPException
- For Uploaded file move
- forCopyError() : mixed
- forCurlError() : HTTPException
- For CurlRequest
- forEmptySupportedNegotiations() : HTTPException
- For Negotiate
- forEnabledZlibOutputCompression() : mixed
- forFabricatorCreateFailed() : mixed
- forInvalidFile() : HTTPException
- For Uploaded file move
- forInvalidHTTPProtocol() : HTTPException
- For Message
- forInvalidNegotiationType() : HTTPException
- For IncomingRequest
- forInvalidPort() : HTTPException
- For URI
- forInvalidRedirectRoute() : HTTPException
- For RedirectResponse
- forInvalidSameSiteSetting() : HTTPException
- For Invalid SameSite attribute setting
- forInvalidSSLKey() : HTTPException
- For CurlRequest
- forInvalidStatusCode() : HTTPException
- For Response
- forMalformedQueryString() : HTTPException
- For URI
- forMissingCurl() : HTTPException
- For CurlRequest
- forMissingExtension() : mixed
- forMissingResponseStatus() : HTTPException
- For Response
- forMoveFailed() : HTTPException
- For Uploaded file move
- forNoHandlers() : mixed
- forSSLCertNotFound() : HTTPException
- For CurlRequest
- forUnableToParseURI() : HTTPException
- For URI
- forUnkownStatusCode() : HTTPException
- For Response
- forURISegmentOutOfRange() : HTTPException
- For URI
Methods
__construct()
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
public
final __construct([string $message = '' ], int $code[, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ''
- $code : int
- $previous : Throwable|null = null
Return values
mixed —forAlreadyMoved()
For Uploaded file move
public
static forAlreadyMoved() : HTTPException
Return values
HTTPException —forCopyError()
public
static forCopyError(string $path) : mixed
Parameters
- $path : string
Return values
mixed —forCurlError()
For CurlRequest
public
static forCurlError(string $errorNum, string $error) : HTTPException
Parameters
- $errorNum : string
- $error : string
Tags
Return values
HTTPException —forEmptySupportedNegotiations()
For Negotiate
public
static forEmptySupportedNegotiations() : HTTPException
Return values
HTTPException —forEnabledZlibOutputCompression()
public
static forEnabledZlibOutputCompression() : mixed
Return values
mixed —forFabricatorCreateFailed()
public
static forFabricatorCreateFailed(string $table, string $reason) : mixed
Parameters
- $table : string
- $reason : string
Return values
mixed —forInvalidFile()
For Uploaded file move
public
static forInvalidFile([string|null $path = null ]) : HTTPException
Parameters
- $path : string|null = null
Return values
HTTPException —forInvalidHTTPProtocol()
For Message
public
static forInvalidHTTPProtocol(string $protocols) : HTTPException
Parameters
- $protocols : string
Return values
HTTPException —forInvalidNegotiationType()
For IncomingRequest
public
static forInvalidNegotiationType(string $type) : HTTPException
Parameters
- $type : string
Return values
HTTPException —forInvalidPort()
For URI
public
static forInvalidPort(int $port) : HTTPException
Parameters
- $port : int
Return values
HTTPException —forInvalidRedirectRoute()
For RedirectResponse
public
static forInvalidRedirectRoute(string $route) : HTTPException
Parameters
- $route : string
Return values
HTTPException —forInvalidSameSiteSetting()
For Invalid SameSite attribute setting
public
static forInvalidSameSiteSetting(string $samesite) : HTTPException
Parameters
- $samesite : string
Tags
Return values
HTTPException —forInvalidSSLKey()
For CurlRequest
public
static forInvalidSSLKey(string $key) : HTTPException
Parameters
- $key : string
Return values
HTTPException —forInvalidStatusCode()
For Response
public
static forInvalidStatusCode(int $code) : HTTPException
Parameters
- $code : int
Return values
HTTPException —forMalformedQueryString()
For URI
public
static forMalformedQueryString() : HTTPException
Return values
HTTPException —forMissingCurl()
For CurlRequest
public
static forMissingCurl() : HTTPException
Tags
Return values
HTTPException —forMissingExtension()
public
static forMissingExtension(string $extension) : mixed
Parameters
- $extension : string
Return values
mixed —forMissingResponseStatus()
For Response
public
static forMissingResponseStatus() : HTTPException
Return values
HTTPException —forMoveFailed()
For Uploaded file move
public
static forMoveFailed(string $source, string $target, string $error) : HTTPException
Parameters
- $source : string
- $target : string
- $error : string
Return values
HTTPException —forNoHandlers()
public
static forNoHandlers(string $class) : mixed
Parameters
- $class : string
Return values
mixed —forSSLCertNotFound()
For CurlRequest
public
static forSSLCertNotFound(string $cert) : HTTPException
Parameters
- $cert : string
Return values
HTTPException —forUnableToParseURI()
For URI
public
static forUnableToParseURI(string $uri) : HTTPException
Parameters
- $uri : string
Return values
HTTPException —forUnkownStatusCode()
For Response
public
static forUnkownStatusCode(int $code) : HTTPException
Parameters
- $code : int
Return values
HTTPException —forURISegmentOutOfRange()
For URI
public
static forURISegmentOutOfRange(int $segment) : HTTPException
Parameters
- $segment : int