FileDocCategorySizeDatePackage
DOMTestIncompatibleException.javaAPI DocAndroid 1.5 API2191Wed May 06 22:41:04 BST 2009org.w3c.domts

DOMTestIncompatibleException

public class DOMTestIncompatibleException extends Exception
This exception represents a mismatch between the requirements of the test (for example, entity preserving) and the capabilities of the parser under test.
author
Curt Arnold

Fields Summary
private final String
msg
Constructors Summary
private DOMTestIncompatibleException(String msg)

    this.msg = msg;
  
public DOMTestIncompatibleException(Throwable ex, DocumentBuilderSetting setting)
Constructor from a ParserConfigurationException or reflection exception

    if (ex != null) {
      msg = ex.toString();
    }
    else {
      if (setting != null) {
        msg = setting.toString();
      }
      else {
        msg = super.toString();
      }
    }
  
Methods Summary
public static org.w3c.domts.DOMTestIncompatibleExceptionincompatibleFeature(java.lang.String feature, java.lang.String version)

    StringBuffer buf = new StringBuffer(
        "Implementation does not support feature \"");
    buf.append(feature);
    buf.append("\" version=\"");
    buf.append(version);
    buf.append("\".");
    return new DOMTestIncompatibleException(buf.toString());
  
public static org.w3c.domts.DOMTestIncompatibleExceptionincompatibleLoad(java.lang.String href, java.lang.String contentType)

    StringBuffer buf = new StringBuffer(
        "Document is incompatible with content type, \"");
    buf.append(href);
    buf.append("\" not available for =\"");
    buf.append(contentType);
    buf.append("\".");
    return new DOMTestIncompatibleException(buf.toString());
  
public java.lang.StringtoString()

    return msg;