package org.apache.struts.action;

import java.util.Iterator;

public class ActionErrorsExt extends ActionErrors {

    // --------------------------------------------------------- Public Methods


    /**
     * Add an error message to the set of errors for default property
     * ActionErrors.GLOBAL_ERROR .
     *
     * @param error The error message to be added
     */
    public void add( ActionError error) {
     add( ActionErrors.GLOBAL_ERROR, error );
    }

    /**
     * Return Iterator for property names.
     *
     */
    public Iterator getProperties() {
     return errors.keySet().iterator();
    }
 

}