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.

__toString()

__toString() 
Inherited

inherited_from Exception::__toString()
inherited_from \XenForo_Exception::__toString()

getCode()

getCode() 
Inherited

inherited_from Exception::getCode()
inherited_from \XenForo_Exception::getCode()

getFile()

getFile() 
Inherited

inherited_from Exception::getFile()
inherited_from \XenForo_Exception::getFile()

getLine()

getLine() 
Inherited

inherited_from Exception::getLine()
inherited_from \XenForo_Exception::getLine()

getLineNumber()

getLineNumber() 

getMessage()

getMessage() 
Inherited

inherited_from Exception::getMessage()
inherited_from \XenForo_Exception::getMessage()

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

getPrevious()

getPrevious() 
Inherited

inherited_from Exception::getPrevious()
inherited_from \XenForo_Exception::getPrevious()

getTrace()

getTrace() 
Inherited

inherited_from Exception::getTrace()
inherited_from \XenForo_Exception::getTrace()

getTraceAsString()

getTraceAsString() 
Inherited

inherited_from Exception::getTraceAsString()
inherited_from \XenForo_Exception::getTraceAsString()

Determines whether the exception is printable.

isUserPrintable() : boolean
Inherited

inherited_from \XenForo_Exception::isUserPrintable()

Returns

boolean

setLineNumber()

setLineNumber($lineNumber) 

Parameters

$lineNumber

 Properties

 

$_lineNumber

$_lineNumber 

 

$_messages

$_messages 
Inherited

inherited_from \XenForo_Exception::$$_messages
 

$_userPrintable

$_userPrintable 
Inherited

inherited_from \XenForo_Exception::$$_userPrintable