====== getErrors ====== {#JAPI Joomla.Framework Utilities JError::getErrors #} Retrieves the errors that are stored. This function returns a chronological array of errors that have been stored during script execution. Storing errors is one of multiple methods. See the [[#seterrorhandling|setErrorHandling]] method for more information. ===== Syntax ===== array getErrors () ===== Examples ===== JError::setErrorHandling( E_ALL, 'store' ); JError::raiseNotice( '253', 'THIS IS ONLY A TEST!' ); $errors = JError::getErrors(); foreach ($errors as $error) { echo $error->message; } might produce: THIS IS ONLY A TEST!