• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

throw new XenForo_Exception

AndyB

Well-known member
#1
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.jpg

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

Thank you.
 

Jake B.

Well-known member
#2
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