General XenForo exception handler.

Has support for throwing errors that are specifically targetted at users, and even throwing multiple messages together in one exception. (This latter behavior is primarily used as a convienence in things like the DWs.)

package XenForo_Core

 Methods

Constructor.

__construct(array | string $message, boolean $userPrintable) 

Parameters

$message

arraystring

Exception message. May be multiple messages.

$userPrintable

boolean

If true, message is printable to the user.

Gets all messages that are attached to this exception.

getMessages() : string | array

If an non-empty array was passed to the constructor, this will return an array; otherwise, it will return a string.

Returns

stringarray

Determines whether the exception is printable.

isUserPrintable() : boolean

Returns

boolean

 Properties

 

$_messages 
 

$_userPrintable