error handling - Joomla - swallow a JError::raiseError-Message silently -


hey guys, possible catch , ignore jerror::raiseerror? use jdatabase , if user acts 'stupid' duplicate entry can occur. that's not problem , can ignored silently.

unfortunatelly error printed on hole page. dont want drop new query check if primary key exists.

to disable throwing of joomla exceptions in execution path call:

jerror::seterrorhandling(e_all, "ignore");

alternative can set own custom handler:

jerror::seterrorhandling(e_all, 'callback', array('myclass', 'myerrorhandlerfunction'));


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -