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.)
Methods
Constructor.
__construct(array | string $message, boolean $userPrintable)
Parameters
$message
array
string
Exception message. May be multiple messages.
$userPrintable
boolean
If true, message is printable to the user.
__toString()
__toString()
inherited_from |
Exception::__toString() |
getCode()
getCode()
inherited_from |
Exception::getCode() |
getFile()
getFile()
inherited_from |
Exception::getFile() |
getLine()
getLine()
inherited_from |
Exception::getLine() |
getMessage()
getMessage()
inherited_from |
Exception::getMessage() |
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
string
array
getPrevious()
getPrevious()
inherited_from |
Exception::getPrevious() |
getTrace()
getTrace()
inherited_from |
Exception::getTrace() |
getTraceAsString()
getTraceAsString()
inherited_from |
Exception::getTraceAsString() |
Determines whether the exception is printable.
isUserPrintable() : boolean
Properties
$_userPrintable
$_userPrintable