Arikaim CMS

Errors
in package
implements SystemErrorInterface

Errors

Table of Contents

Interfaces

SystemErrorInterface
Extension interface

Properties

$consoleFile  : string
Console errors filename
$fileName  : string
Errors file name
$loaded  : bool
Error file loaded

Methods

__construct()  : mixed
Constructor
getError()  : string|null
Get error code
getUplaodFileError()  : string
Get upload error message
hasErrorCode()  : bool
Return true if error code exists
loadValidationErrors()  : array<string|int, mixed>
Load validation errors
loadErrors()  : void
Load erros

Properties

$consoleFile

Console errors filename

protected string $consoleFile

$fileName

Errors file name

protected string $fileName

$loaded

Error file loaded

private bool $loaded

Methods

__construct()

Constructor

public __construct(string $fileName, string $consoleFile[, bool $consoleApp = false ]) : mixed
Parameters
$fileName : string
$consoleFile : string
$consoleApp : bool = false

getError()

Get error code

public getError(string $errorCode[, array<string|int, mixed> $params = [] ][, string|null $default = null ]) : string|null
Parameters
$errorCode : string
$params : array<string|int, mixed> = []
$default : string|null = null
Return values
string|null

getUplaodFileError()

Get upload error message

public getUplaodFileError(int $errorCode) : string
Parameters
$errorCode : int
Return values
string

hasErrorCode()

Return true if error code exists

public hasErrorCode(string $code) : bool
Parameters
$code : string
Return values
bool

loadValidationErrors()

Load validation errors

public loadValidationErrors([string $fileName = 'validation-errors.json' ]) : array<string|int, mixed>
Parameters
$fileName : string = 'validation-errors.json'
Return values
array<string|int, mixed>

loadErrors()

Load erros

protected loadErrors() : void

        
On this page

Search results