GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • CodeIgniter v4.7 API

This view

  • Original page
  • New address

GeezerVison is showing codeigniter4.github.io — CodeIgniter v4.7 API

Menu

Namespaces

CodeIgniter

  • API
  • Autoloader
  • Cache
  • CLI
  • Commands
  • Config
  • Cookie
  • Database
  • DataCaster
  • DataConverter
  • Debug
  • Email
  • Encryption
  • Entity
  • Events
  • Exceptions
  • Files
  • Filters
  • Format
  • Helpers
  • Honeypot
  • HTTP
  • I18n
  • Images
  • Language
  • Log
  • Modules
  • Pager
  • Publisher
  • RESTful
  • Router
  • Security
  • Session
  • Test
  • Throttle
  • Traits
  • Typography
  • Validation
  • View

Packages

Application

Reports

Deprecated

Errors

Markers

Indices

Files

  • CodeIgniter
  • HTTP
  • Exceptions

HTTPException extends FrameworkException
in package
  • Application
implements ExceptionInterface

HTTPException.php : 21

Things that can go wrong with HTTP

Table of Contents

Interfaces

ExceptionInterface
Provides a domain-level interface for broad capture of all HTTP-related exceptions.

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()  : static
For Uploaded file move
forCopyError()  : static
forCurlError()  : HTTPException
For CurlRequest
forEmptySupportedNegotiations()  : HTTPException
For Negotiate
forEnabledZlibOutputCompression()  : static
forFabricatorCreateFailed()  : static
forInvalidDirectory()  : static
forInvalidFile()  : static
For Uploaded file move
forInvalidFileName()  : static
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()  : static
For CurlRequest
forInvalidStatusCode()  : HTTPException
For Response
forMalformedQueryString()  : HTTPException
For URI
forMissingCurl()  : static
For CurlRequest
forMissingExtension()  : static
forMissingResponseStatus()  : HTTPException
For Response
forMoveFailed()  : HTTPException
For Uploaded file move
forNoHandlers()  : static
forSSLCertNotFound()  : static
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()

DebugTraceableTrait.php : 30

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

forAlreadyMoved()

HTTPException.php : 195

For Uploaded file move

public static forAlreadyMoved() : static
Return values
static

forCopyError()

FrameworkException.php : 53
public static forCopyError(string $path) : static
Parameters
$path : string
Return values
static

forCurlError()

HTTPException.php : 62

For CurlRequest

public static forCurlError(string $errorNum, string $error) : HTTPException
Parameters
$errorNum : string
$error : string
Tags
codeCoverageIgnore
Return values
HTTPException

forEmptySupportedNegotiations()

HTTPException.php : 105

For Negotiate

public static forEmptySupportedNegotiations() : HTTPException
Return values
HTTPException

forEnabledZlibOutputCompression()

FrameworkException.php : 29
public static forEnabledZlibOutputCompression() : static
Return values
static

forFabricatorCreateFailed()

FrameworkException.php : 90
public static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
$table : string
$reason : string
Return values
static

forInvalidDirectory()

FrameworkException.php : 45
public static forInvalidDirectory(string $path) : static
Parameters
$path : string
Return values
static

forInvalidFile()

HTTPException.php : 205

For Uploaded file move

public static forInvalidFile([string|null $path = null ]) : static
Parameters
$path : string|null = null
Return values
static

forInvalidFileName()

HTTPException.php : 213

For Uploaded file move

public static forInvalidFileName() : static
Return values
static

forInvalidHTTPProtocol()

HTTPException.php : 95

For Message

public static forInvalidHTTPProtocol(string $invalidVersion) : HTTPException
Parameters
$invalidVersion : string
Return values
HTTPException

forInvalidJSON()

HTTPException.php : 85

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

forInvalidNegotiationType()

HTTPException.php : 72

For IncomingRequest

public static forInvalidNegotiationType(string $type) : HTTPException
Parameters
$type : string
Return values
HTTPException

forInvalidPort()

HTTPException.php : 175

For URI

public static forInvalidPort(int $port) : HTTPException
Parameters
$port : int
Return values
HTTPException

forInvalidRedirectRoute()

HTTPException.php : 115

For RedirectResponse

public static forInvalidRedirectRoute(string $route) : HTTPException
Parameters
$route : string
Return values
HTTPException

forInvalidSameSiteSetting()

HTTPException.php : 237

For Invalid SameSite attribute setting

public static forInvalidSameSiteSetting(string $samesite) : HTTPException

Use CookieException::forInvalidSameSite() instead.

Parameters
$samesite : string
Tags
codeCoverageIgnore
Return values
HTTPException

forInvalidSSLKey()

HTTPException.php : 50

For CurlRequest

public static forInvalidSSLKey(string $key) : static
Parameters
$key : string
Return values
static

forInvalidStatusCode()

HTTPException.php : 135

For Response

public static forInvalidStatusCode(int $code) : HTTPException
Parameters
$code : int
Return values
HTTPException

forMalformedQueryString()

HTTPException.php : 185

For URI

public static forMalformedQueryString() : HTTPException
Return values
HTTPException

forMissingCurl()

HTTPException.php : 30

For CurlRequest

public static forMissingCurl() : static
Tags
codeCoverageIgnore
Return values
static

forMissingExtension()

FrameworkException.php : 63
public static forMissingExtension(string $extension) : static

No longer used.

Parameters
$extension : string
Return values
static

forMissingResponseStatus()

HTTPException.php : 125

For Response

public static forMissingResponseStatus() : HTTPException
Return values
HTTPException

forMoveFailed()

HTTPException.php : 223

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()

FrameworkException.php : 82
public static forNoHandlers(string $class) : static
Parameters
$class : string
Return values
static

forSSLCertNotFound()

HTTPException.php : 40

For CurlRequest

public static forSSLCertNotFound(string $cert) : static
Parameters
$cert : string
Return values
static

forUnableToParseURI()

HTTPException.php : 155

For URI

public static forUnableToParseURI(string $uri) : HTTPException
Parameters
$uri : string
Return values
HTTPException

forUnkownStatusCode()

HTTPException.php : 145

For Response

public static forUnkownStatusCode(int $code) : HTTPException
Parameters
$code : int
Return values
HTTPException

forUnsupportedJSONFormat()

HTTPException.php : 248

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

forURISegmentOutOfRange()

HTTPException.php : 165

For URI

public static forURISegmentOutOfRange(int $segment) : HTTPException
Parameters
$segment : int
Return values
HTTPException
On this page
  • Table Of Contents
    • Methods
  • Methods
    • __construct()
    • forAlreadyMoved()
    • forCopyError()
    • forCurlError()
    • forEmptySupportedNegotiations()
    • forEnabledZlibOutputCompression()
    • forFabricatorCreateFailed()
    • forInvalidDirectory()
    • forInvalidFile()
    • forInvalidFileName()
    • forInvalidHTTPProtocol()
    • forInvalidJSON()
    • forInvalidNegotiationType()
    • forInvalidPort()
    • forInvalidRedirectRoute()
    • forInvalidSameSiteSetting()
    • forInvalidSSLKey()
    • forInvalidStatusCode()
    • forMalformedQueryString()
    • forMissingCurl()
    • forMissingExtension()
    • forMissingResponseStatus()
    • forMoveFailed()
    • forNoHandlers()
    • forSSLCertNotFound()
    • forUnableToParseURI()
    • forUnkownStatusCode()
    • forUnsupportedJSONFormat()
    • forURISegmentOutOfRange()
    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.