/** * Produces a standard string for the error message, complete with * filename and location offsets if available. */ public String toString ( ) { return toString( null ); }
XPathCompileException ( XmlError err ) { super( err.toString(), null, err ); } }
public XMLStreamValidationException ( XmlError xmlError ) { super( xmlError.toString() ); _xmlError = xmlError; }
/** * Constructs an XmlRuntimeException from an XmlError. */ public XmlRuntimeException ( XmlError error ) { this( error.toString(), null, error ); }
/** * Constructs an XmlException from an {@link XmlError}. */ public XmlException ( XmlError error ) { this( error.toString(), null, error ); }
public boolean add(Object o) { if (o instanceof XmlError) { XmlError err = (XmlError)o; if (err.getSeverity() == XmlError.SEVERITY_ERROR || err.getSeverity() == XmlError.SEVERITY_WARNING) System.err.println(err.toString(_baseURI)); else if (_noisy) System.out.println(err.toString(_baseURI)); } return false; }
public boolean add(Object o) { if (o instanceof XmlError) { XmlError err = (XmlError)o; if (err.getSeverity() == XmlError.SEVERITY_ERROR) log(err.toString(_baseURI), Project.MSG_ERR); else if (err.getSeverity() == XmlError.SEVERITY_WARNING) log(err.toString(_baseURI), Project.MSG_WARN); else if (_noisy) log(err.toString(_baseURI), Project.MSG_INFO); } return false; }
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (beginsWithXml(prefix) && !("xml".equals(prefix) && _xml1998Uri.equals(uri))) { XmlError err = XmlError.forMessage( "Prefix can't begin with XML: " + prefix, XmlError.SEVERITY_ERROR); throw new XmlRuntimeException(err.toString(), null, err); } }
throw new XmlException(err.toString(), null, err);
throw new XmlException(err.toString(), null, err);
outerErrors.add(XmlError.forObject("More than one instance file speicifed - ignoring all but last", filedescs[j]).toString()); newCase.instanceFile = theFile; newCase.ivExpected = filedescs[j].getValidity(); outerErrors.add(XmlError.forObject("More than one schema file speicifed - ignoring all but last", filedescs[j]).toString()); newCase.schemaFile = theFile; newCase.svExpected = filedescs[j].getValidity(); outerErrors.add(XmlError.forObject("More than one resource file speicifed - ignoring all but last", filedescs[j]).toString()); newCase.resourceFile = theFile; newCase.rvExpected = filedescs[j].getValidity();
XPathCompileException ( XmlError err ) { super( err.toString(), null, err ); } }
/** * Produces a standard string for the error message, complete with * filename and location offsets if available. */ public String toString ( ) { return toString( null ); }
/** * Constructs an XmlException from an {@link XmlError}. */ public XmlException ( XmlError error ) { this( error.toString(), null, error ); }
XPathCompileException ( XmlError err ) { super( err.toString(), null, err ); } }
/** * Constructs an XmlRuntimeException from an XmlError. */ public XmlRuntimeException ( XmlError error ) { this( error.toString(), null, error ); }
System.out.println("warning: " + files[i] + " is not a schema file - " + e.getError().toString());
public boolean add(Object o) { if (o instanceof XmlError) { XmlError err = (XmlError)o; if (err.getSeverity() == XmlError.SEVERITY_ERROR || err.getSeverity() == XmlError.SEVERITY_WARNING) System.err.println(err.toString(_baseURI)); else if (_noisy) System.out.println(err.toString(_baseURI)); } return false; }