org.apache.xpath.objects.XObject.error()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.apache.xpath.objects.XObject.error()方法的一些代码示例,展示了XObject.error()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject.error()方法的具体详情如下:
包路径:org.apache.xpath.objects.XObject
类名称:XObject
方法名:error

XObject.error介绍

[英]Tell the user of an error, and probably throw an exception.
[中]告诉用户错误,并可能引发异常。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Tell the user of an error, and probably throw an
 * exception.
 *
 * @param msg Error message to issue
 *
 * @throws javax.xml.transform.TransformerException
 */
protected void error(String msg)
    throws javax.xml.transform.TransformerException
{
 error(msg, null);
}

代码示例来源:origin: xalan/xalan

/**
 * Tell the user of an error, and probably throw an
 * exception.
 *
 * @param msg Error message to issue
 *
 * @throws javax.xml.transform.TransformerException
 */
protected void error(String msg)
    throws javax.xml.transform.TransformerException
{
 error(msg, null);
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeList nodelist() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a number. Always issues an error.
 *
 * @return 0.0
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return 0.0;
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return The object as a NodeSetDTM.
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeSetDTM mutableNodeset()
    throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_MUTABLENODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeSetDTM!");
 return (NodeSetDTM) m_obj;
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeIterator nodeset() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a number. Always issues an error.
 *
 * @return 0.0
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return 0.0;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeIterator nodeset() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: robovm/robovm

/**
 * Cast result object to a boolean. Always issues an error.
 *
 * @return false
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean bool() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return false;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a boolean. Always issues an error.
 *
 * @return false
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean bool() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return false;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeList nodelist() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: xalan/xalan

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return The object as a NodeSetDTM.
 *
 * @throws javax.xml.transform.TransformerException
 */
public NodeSetDTM mutableNodeset()
    throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_MUTABLENODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeSetDTM!");
 return (NodeSetDTM) m_obj;
}

代码示例来源:origin: robovm/robovm

error(XPATHErrorResources.ER_CANT_CONVERT_TO_TYPE,
   new Object[]{ getTypeString(),

代码示例来源:origin: xalan/xalan

error(XPATHErrorResources.ER_CANT_CONVERT_TO_TYPE,
   new Object[]{ getTypeString(),

代码示例来源:origin: MobiVM/robovm

/**
 * Cast result object to a number. Always issues an error.
 *
 * @return 0.0
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return 0.0;
}

代码示例来源:origin: MobiVM/robovm

/**
 * Cast result object to a boolean. Always issues an error.
 *
 * @return false
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean bool() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return false;
}

代码示例来源:origin: ibinti/bugvm

/**
 * Cast result object to a nodelist. Always issues an error.
 *
 * @return null
 *
 * @throws javax.xml.transform.TransformerException
 */
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a NodeList!");
 return null;
}

代码示例来源:origin: ibinti/bugvm

/**
 * Cast result object to a boolean. Always issues an error.
 *
 * @return false
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean bool() throws javax.xml.transform.TransformerException
{
 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
    new Object[]{ getTypeString() });  //"Can not convert "+getTypeString()+" to a number");
 return false;
}

相关文章