SecurityException
extends FrameworkException
in package
implements
HTTPExceptionInterface
Class FrameworkException
A collection of exceptions thrown by the framework that can only be determined at run time.
Table of Contents
Interfaces
- HTTPExceptionInterface
- Interface for Exceptions that has exception code as HTTP status code.
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.
- forCopyError() : static
- forDisallowedAction() : static
- Throws when some specific action is not allowed.
- forEnabledZlibOutputCompression() : static
- forFabricatorCreateFailed() : static
- forInsecureCookie() : static
- Throws if a secure cookie is dispatched when the current connection is not secure.
- forInvalidControlChars() : static
- Throws when the source string contains invalid control characters.
- forInvalidDirectory() : static
- forInvalidFile() : static
- forInvalidSameSite() : static
- forInvalidUTF8Chars() : static
- Throws when the source string contains invalid UTF-8 characters.
- forMissingExtension() : static
- forNoHandlers() : static
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
staticforDisallowedAction()
Throws when some specific action is not allowed.
public
static forDisallowedAction() : static
This is used for CSRF protection.
Return values
staticforEnabledZlibOutputCompression()
public
static forEnabledZlibOutputCompression() : static
Return values
staticforFabricatorCreateFailed()
public
static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
- $table : string
- $reason : string
Return values
staticforInsecureCookie()
Throws if a secure cookie is dispatched when the current connection is not secure.
public
static forInsecureCookie() : static
Return values
staticforInvalidControlChars()
Throws when the source string contains invalid control characters.
public
static forInvalidControlChars(string $source, string $string) : static
Parameters
- $source : string
-
The source string
- $string : string
-
The invalid string
Return values
staticforInvalidDirectory()
public
static forInvalidDirectory(string $path) : static
Parameters
- $path : string
Return values
staticforInvalidFile()
public
static forInvalidFile(string $path) : static
Parameters
- $path : string
Return values
staticforInvalidSameSite()
public
static forInvalidSameSite(string $samesite) : static
Use CookieException::forInvalidSameSite()
instead.
Parameters
- $samesite : string
Tags
Return values
staticforInvalidUTF8Chars()
Throws when the source string contains invalid UTF-8 characters.
public
static forInvalidUTF8Chars(string $source, string $string) : static
Parameters
- $source : string
-
The source string
- $string : string
-
The invalid string
Return values
staticforMissingExtension()
public
static forMissingExtension(string $extension) : static
No longer used.
Parameters
- $extension : string
Return values
staticforNoHandlers()
public
static forNoHandlers(string $class) : static
Parameters
- $class : string