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 |
---|
__construct(array | string $message, boolean $userPrintable)
array
string
Exception message. May be multiple messages.
boolean
If true, message is printable to the user.
getMessages() : string | array
If an non-empty array was passed to the constructor, this will return an array; otherwise, it will return a string.
string
array
isUserPrintable() : boolean
boolean
$_userPrintable