/** * Clear list of stored exceptions. * * Use this function before a call to some method if you intend to * check for exceptions afterwards. */ public static function clearExceptions() { self::$exceptions = array(); }