001    package nu.validator.relaxng.exceptions;
002    
003    import org.xml.sax.Locator;
004    
005    import com.thaiopensource.relaxng.impl.NameFormatter;
006    import com.thaiopensource.xml.util.Name;
007    
008    public class ImpossibleAttributeIgnoredException extends AbstractValidationException {
009    
010        private final Name attributeName;
011        
012        public ImpossibleAttributeIgnoredException(Locator locator,
013                Name currentElement, Name parent, Name attributeName) {
014            super(localizer.message("impossible_attribute_ignored", NameFormatter.format(attributeName), NameFormatter.format(currentElement)), locator, currentElement, parent);
015            this.attributeName = attributeName;
016        }
017    
018        /**
019         * Returns the attributeName.
020         * 
021         * @return the attributeName
022         */
023        public Name getAttributeName() {
024            return attributeName;
025        }
026    }