CodeIgniter v4.5 API

HTTPException extends FrameworkException
in package

Things that can go wrong with HTTP

Table of Contents

Methods

__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()  : static
forCurlError()  : HTTPException
For CurlRequest
forEmptySupportedNegotiations()  : HTTPException
For Negotiate
forEnabledZlibOutputCompression()  : static
forFabricatorCreateFailed()  : static
forInvalidDirectory()  : static
forInvalidFile()  : HTTPException
For Uploaded file move
forInvalidHTTPProtocol()  : HTTPException
For Message
forInvalidJSON()  : static
Thrown in IncomingRequest when the json_decode() produces an error code other than JSON_ERROR_NONE.
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()  : static
forMissingResponseStatus()  : HTTPException
For Response
forMoveFailed()  : HTTPException
For Uploaded file move
forNoHandlers()  : static
forSSLCertNotFound()  : HTTPException
For CurlRequest
forUnableToParseURI()  : HTTPException
For URI
forUnkownStatusCode()  : HTTPException
For Response
forUnsupportedJSONFormat()  : HTTPException
Thrown when the JSON format is not supported.
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 = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int = 0
$previous : Throwable|null = null

forCopyError()

public static forCopyError(string $path) : static
Parameters
$path : string
Return values
static

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() : static
Return values
static

forFabricatorCreateFailed()

public static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
$table : string
$reason : string
Return values
static

forInvalidDirectory()

public static forInvalidDirectory(string $path) : static
Parameters
$path : string
Return values
static

forInvalidJSON()

Thrown in IncomingRequest when the json_decode() produces an error code other than JSON_ERROR_NONE.

public static forInvalidJSON([string $error = null ]) : static
Parameters
$error : string = null

The error message

Return values
static

forInvalidSameSiteSetting()

For Invalid SameSite attribute setting

public static forInvalidSameSiteSetting(string $samesite) : HTTPException

Use CookieException::forInvalidSameSite() instead.

Parameters
$samesite : string
Tags
codeCoverageIgnore
Return values
HTTPException

forMissingExtension()

public static forMissingExtension(string $extension) : static

No longer used.

Parameters
$extension : string
Return values
static

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) : static
Parameters
$class : string
Return values
static

forUnsupportedJSONFormat()

Thrown when the JSON format is not supported.

public static forUnsupportedJSONFormat() : HTTPException

This is specifically for cases where data validation is expected to work with key-value structures.

Return values
HTTPException

        
On this page

Search results