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) 
Inherited
inherited_from \XenForo_Exception::__construct()

Parameters

$message

arraystring

Exception message. May be multiple messages.

$userPrintable

boolean

If true, message is printable to the user.

getLineNumber()

getLineNumber() 

Gets all messages that are attached to this exception.

getMessages() : string | array
Inherited

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

inherited_from \XenForo_Exception::getMessages()

Returns

stringarray

Determines whether the exception is printable.

isUserPrintable() : boolean
Inherited
inherited_from \XenForo_Exception::isUserPrintable()

Returns

boolean

setLineNumber()

setLineNumber($lineNumber) 

Parameters

$lineNumber

 Properties

 

$_lineNumber 
 

$_messages 
Inherited
inherited_from \XenForo_Exception::$$_messages
 

$_userPrintable 
Inherited
inherited_from \XenForo_Exception::$$_userPrintable