Class HTTPException

Summary

Fully Qualified Name: CodeIgniter\HTTP\Exceptions\HTTPException
Extends: FrameworkException
Implements: ExceptionInterface

Description

Things that can go wrong with HTTP

Methods

Name Description Defined By
forAlreadyMoved() For Uploaded file move HTTPException
forCopyError() FrameworkException
forCurlError() For CurlRequest HTTPException
forEmptySupportedNegotiations() For Negotiate HTTPException
forInvalidFile() For Uploaded file move HTTPException
forInvalidHTTPProtocol() For Message HTTPException
forInvalidNegotiationType() For IncomingRequest HTTPException
forInvalidPort() For URI HTTPException
forInvalidRedirectRoute() For RedirectResponse HTTPException
forInvalidSSLKey() For CurlRequest HTTPException
forInvalidStatusCode() For Response HTTPException
forMalformedQueryString() For URI HTTPException
forMissingCurl() For CurlRequest HTTPException
forMissingExtension() FrameworkException
forMissingResponseStatus() For Response HTTPException
forMoveFailed() For Uploaded file move HTTPException
forNoHandlers() FrameworkException
forSSLCertNotFound() For CurlRequest HTTPException
forURISegmentOutOfRange() For URI HTTPException
forUnableToParseURI() For URI HTTPException
forUnkownStatusCode() For Response HTTPException

Method Details

forAlreadyMoved()

For Uploaded file move

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forCopyError()

Parameter Name Type Description
$path

Returns: void

forCurlError()

For CurlRequest

Parameter Name Type Description
$errorNum string
$error string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException Not testable with travis-ci; we over-ride the method which triggers it

forEmptySupportedNegotiations()

For Negotiate

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidFile()

For Uploaded file move

Parameter Name Type Description
$path string|null

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidHTTPProtocol()

For Message

Parameter Name Type Description
$protocols string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidNegotiationType()

For IncomingRequest

Parameter Name Type Description
$type string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidPort()

For URI

Parameter Name Type Description
$port int

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidRedirectRoute()

For RedirectResponse

Parameter Name Type Description
$route string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidSSLKey()

For CurlRequest

Parameter Name Type Description
$key string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forInvalidStatusCode()

For Response

Parameter Name Type Description
$code int

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forMalformedQueryString()

For URI

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forMissingCurl()

For CurlRequest

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException Not testable with travis-ci

forMissingExtension()

Parameter Name Type Description
$extension

Returns: void

forMissingResponseStatus()

For Response

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forMoveFailed()

For Uploaded file move

Parameter Name Type Description
$source
$target
$error

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forNoHandlers()

Parameter Name Type Description
$class

Returns: void

forSSLCertNotFound()

For CurlRequest

Parameter Name Type Description
$cert string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forURISegmentOutOfRange()

For URI

Parameter Name Type Description
$segment int

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forUnableToParseURI()

For URI

Parameter Name Type Description
$uri string

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

forUnkownStatusCode()

For Response

Parameter Name Type Description
$code int

Returns: \CodeIgniter\HTTP\Exceptions\HTTPException

Top