PEAR_Exception | --HTML_QuickForm2_Exception | --HTML_QuickForm2_NotFoundException
One example is trying to instantiate a nonexistent class in Factory try { HTML_QuickForm2_Factory::registerElement('missing', 'NonExistent'); $el = HTML_QuickForm2_Factory::createElement('missing'); } catch (HTML_QuickForm2_NotFoundException $e) { echo $e->getMessage(); } This code fill output "Class 'NonExistent' does not exist and no file to load"
try { HTML_QuickForm2_Factory::registerElement('missing', 'NonExistent'); $el = HTML_QuickForm2_Factory::createElement('missing'); } catch (HTML_QuickForm2_NotFoundException $e) { echo $e->getMessage(); }