PEAR_Exception | --HTML_QuickForm2_Exception | --HTML_QuickForm2_InvalidArgumentException
One example is trying to create an element of type which is unknown to Factory try { $el = HTML_QuickForm2_Factory::createElement('unknown'); } catch (HTML_QuickForm2_InvalidArgumentException $e) { echo $e->getMessage(); } This code will output "Element type 'unknown' is not known"
try { $el = HTML_QuickForm2_Factory::createElement('unknown'); } catch (HTML_QuickForm2_InvalidArgumentException $e) { echo $e->getMessage(); }