vBulletin v6.0.4

vB_Exception_NodePermission extends vB_Exception_Api
in package

AccessDenied Exception Thrown whenever an unrecoverable access denied occurs.

This should cause a reroute to the error page with a generic permissions error.

Tags
author

vBulletin Development Team

since

$Date: 2021-02-16 11:04:48 -0800 (Tue, 16 Feb 2021) $

Table of Contents

Methods

__construct()  : mixed
Constructor.
__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__toString()  : mixed
Magic method.
__unserialize()  : void
__wakeup()  : void
add_error()  : mixed
get_errors()  : mixed
getFullTrace()  : string
Returns the stack trace for an exception
getNodeId()  : mixed
has_error()  : mixed
has_errors()  : mixed
isCritical()  : bool
Checks if an exception is considered critical.
logError()  : mixed
Logs details of the error.
mailError()  : mixed
Sends details of the error to a configured email address.
toString()  : string
Creates a string representation of the error.

Methods

__construct()

Constructor.

public __construct(mixed $nodeid[, mixed $nodetype = "" ][, mixed $user = "" ]) : mixed

Checks whether the error should be logged, mailed and/or debugged.

Parameters
$nodeid : mixed
$nodetype : mixed = ""
$user : mixed = ""

__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>

__toString()

Magic method.

public __toString() : mixed

Seperated from toString function because __toString cannot take parameters in 5.3

__unserialize()

public __unserialize(array<string|int, mixed> $serialized) : void
Parameters
$serialized : array<string|int, mixed>

add_error()

public add_error(mixed $phrase_id[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$phrase_id : mixed
$args : array<string|int, mixed> = []

get_errors()

public get_errors() : mixed

getFullTrace()

Returns the stack trace for an exception

public static getFullTrace(Exception $e) : string

The exception class provides a getTrace and getTraceAsString function, but maddeningly, these do not include the line on which the exception was thrown. This function adds that information the to the string trace and returns it

Declared as as static function so we can use this with other people's exceptions
as well as our own.
Parameters
$e : Exception
Return values
string

has_error()

public has_error(mixed $phrase_id) : mixed
Parameters
$phrase_id : mixed

has_errors()

public has_errors() : mixed

isCritical()

Checks if an exception is considered critical.

public isCritical() : bool
Return values
bool

logError()

Logs details of the error.

public logError() : mixed

mailError()

Sends details of the error to a configured email address.

public mailError() : mixed

toString()

Creates a string representation of the error.

public toString([bool $verbose = false ]) : string

This is useful when logging or mailing the error and displays full details of the error and where it occurred, including a full stack trace.

Parameters
$verbose : bool = false
  • Whether to display full details
Return values
string

        
On this page

Search results