public static function getErrorsOccurred(string $formId = Actions::DEFAULT_ERRORS_ID): array
    {
        $errors = Cache::getInstance(FlashCache::CACHE_INSTANCE_NAME)->getCached($formId);
        $errorList = json_decode($errors, true);
        
        return !is_array($errorList) ? array() : $errorList;
    }
public static function getErrorsOccurred(string $formId = Actions::DEFAULT_ERRORS_ID): array
    {
        $errors = Cache::getInstance(FlashCache::CACHE_INSTANCE_NAME)->getCached($formId);
        $errorList = json_decode($errors, true);
        
        return !is_array($errorList) ? array() : $errorList;
    }
public static function getErrorsOccurred ( string $ formId = Actions :: DEFAULT_ERRORS_ID ) : array { $ errors = Cache :: getInstance ( FlashCache :: CACHE_INSTANCE_NAME ) -> getCached ( $ formId ) ; $ errorList = json_decode ( $ errors , true ) ; return ! is_array ( $ errorList ) ? array ( ) : $ errorList ; }
Get all errors added to the response in the previous request.

@param string $formId
[optional]
The id of the form to get the errors for.

@return array Errors that were added for the given form-id.
Get all errors added to the response in the previous request .