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