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 TextNotAllowedException extends AbstractValidationException {
009
010 public TextNotAllowedException(Locator locator,
011 Name currentElement) {
012 super(localizer.message("text_not_allowed", NameFormatter.format(currentElement)), locator, currentElement, null);
013 }
014
015 }