throw new XenForo_Exception

AndyB

Well-known member
Hello,

In an add-on I'm creating, I'm using the following PHP code:

PHP:
if (!$match)
{	
    throw new XenForo_Exception(new XenForo_Phrase('seller_please_upgrade_your_account'), true);
}

This produces the following message:

pic001.webp

What I would like to do is change the "XenForo - Error" to some thing else, is this possible?

Thank you.
 
Hello,

In an add-on I'm creating, I'm using the following PHP code:

PHP:
if (!$match)
{   
    throw new XenForo_Exception(new XenForo_Phrase('seller_please_upgrade_your_account'), true);
}

This produces the following message:

View attachment 124831

What I would like to do is change the "XenForo - Error" to some thing else, is this possible?

Thank you.
Render a custom template is the only way I'm aware of
 
Top Bottom