Arikaim CMS

PhpError
in package

Php error base class

Table of Contents

Methods

getErrorTypeText()  : string
Get error type
getJsonError()  : string
Get JSON error message
getPosixError()  : mixed
Get posix error
toArray()  : array<string|int, mixed>
Convert error to array
toString()  : string
Convert to string

Methods

getErrorTypeText()

Get error type

public static getErrorTypeText(int $type) : string
Parameters
$type : int
Return values
string

getJsonError()

Get JSON error message

public static getJsonError() : string
Return values
string

getPosixError()

Get posix error

public static getPosixError() : mixed

toArray()

Convert error to array

public static toArray(Throwable|array<string|int, mixed> $error) : array<string|int, mixed>
Parameters
$error : Throwable|array<string|int, mixed>
Return values
array<string|int, mixed>

toString()

Convert to string

public static toString(array<string|int, mixed> $errorDetails) : string
Parameters
$errorDetails : array<string|int, mixed>
Return values
string

        
On this page

Search results