CodeIgniter v4.5 API

ValidationException extends FrameworkException
in package

Class FrameworkException

A collection of exceptions thrown by the framework that can only be determined at run time.

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.
forCopyError()  : static
forEnabledZlibOutputCompression()  : static
forFabricatorCreateFailed()  : static
forGroupNotArray()  : static
Throws when the group value of config is not array type.
forGroupNotFound()  : static
Throws when the group value of config is not set.
forInvalidDirectory()  : static
forInvalidFile()  : static
forInvalidTemplate()  : static
Throws when the template of config is invalid.
forMissingExtension()  : static
forNoHandlers()  : static
forNoRuleSets()  : static
Throws when there is no any rule set.
forRuleNotFound()  : static
Throws when the validation rule is not found.

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

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

forGroupNotArray()

Throws when the group value of config is not array type.

public static forGroupNotArray([string|null $group = null ]) : static
Parameters
$group : string|null = null
Return values
static

forGroupNotFound()

Throws when the group value of config is not set.

public static forGroupNotFound([string|null $group = null ]) : static
Parameters
$group : string|null = null
Return values
static

forInvalidDirectory()

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

forInvalidFile()

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

forInvalidTemplate()

Throws when the template of config is invalid.

public static forInvalidTemplate([string|null $template = null ]) : static
Parameters
$template : string|null = null
Return values
static

forMissingExtension()

public static forMissingExtension(string $extension) : static

No longer used.

Parameters
$extension : string
Return values
static

forNoHandlers()

public static forNoHandlers(string $class) : static
Parameters
$class : string
Return values
static

forNoRuleSets()

Throws when there is no any rule set.

public static forNoRuleSets() : static
Return values
static

forRuleNotFound()

Throws when the validation rule is not found.

public static forRuleNotFound([string|null $rule = null ]) : static
Parameters
$rule : string|null = null
Return values
static

        
On this page

Search results