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
Post a Comment