CodeIgniter v4.7 API

HoneypotException extends ConfigException
in package
implements HTTPExceptionInterface

Exception thrown if the value of the Config class is invalid or the type is incorrect.

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.
forDisabledMigrations()  : static
forNoHiddenValue()  : static
Thrown when the hidden value of config is false.
forNoNameField()  : static
Thrown when the name value of config is empty.
forNoTemplate()  : static
Thrown when the template value of config is empty.
getExitCode()  : int
Returns exit status code.
isBot()  : static
Thrown when there are no data in the request of honeypot field.

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

forDisabledMigrations()

public static forDisabledMigrations() : static
Return values
static

forNoHiddenValue()

Thrown when the hidden value of config is false.

public static forNoHiddenValue() : static

Never used.

Return values
static

forNoNameField()

Thrown when the name value of config is empty.

public static forNoNameField() : static
Return values
static

forNoTemplate()

Thrown when the template value of config is empty.

public static forNoTemplate() : static
Return values
static

getExitCode()

Returns exit status code.

public getExitCode() : int
Return values
int

isBot()

Thrown when there are no data in the request of honeypot field.

public static isBot() : static
Return values
static
On this page

Search results