vBulletin v6.1.0

vB_Utility_Exception_Phrase extends Exception
in package
uses vB_Utility_Trait_NoSerialize

Table of Contents

Methods

__construct()  : mixed
__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
addError()  : void
createFromErrorList()  : static
getErrors()  : array<string|int, mixed>
hasError()  : bool
hasErrors()  : bool

Methods

__construct()

public __construct(string|array<string|int, mixed> $error[, mixed $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$error : string|array<string|int, mixed>
$code : mixed = 0
$previous : Throwable|null = null

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(mixed $serialized) : void
Parameters
$serialized : mixed

addError()

public addError(string|array<string|int, mixed> $error) : void
Parameters
$error : string|array<string|int, mixed>

createFromErrorList()

public static createFromErrorList(array<string|int, mixed> $errors[, mixed $code = 0 ][, Throwable|null $previous = null ]) : static
Parameters
$errors : array<string|int, mixed>
$code : mixed = 0
$previous : Throwable|null = null
Return values
static

getErrors()

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasError()

public hasError(string $phraseId) : bool
Parameters
$phraseId : string
Return values
bool

hasErrors()

public hasErrors() : bool
Return values
bool

        
On this page

Search results