Documentation

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

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
codeCoverageIgnore
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

forInvalidSameSiteSetting()

For Invalid SameSite attribute setting

public static forInvalidSameSiteSetting(string $samesite) : HTTPException
Parameters
$samesite : string
Tags
deprecated

Use CookieException::forInvalidSameSite() instead.

codeCoverageIgnore
Return values
HTTPException

forMissingExtension()

public static forMissingExtension(string $extension) : mixed
Parameters
$extension : string
Return values
mixed

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

Search results