Hey guys,
is it possible to catch and ignore a JError::raiseError?
I use JDatabase and if a user acts ‘stupid’ a duplicate entry can occur.
But that’s not a problem and can be ignored silently.
Unfortunatelly this error is printed over the hole page. Now i dont want to
drop a new query just to check if this primary key already exists.
To disable throwing of Joomla exceptions in the execution path call:
JError::setErrorHandling(E_ALL, "ignore");Alternative you can set your own custom handler:
JError::setErrorHandling(E_ALL, ‘callback’, array(‘myClass’, ‘myErrorHandlerFunction’));