- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.exolab.castor.xml.XMLException.<init>()
方法的一些代码示例,展示了XMLException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLException.<init>()
方法的具体详情如下:
包路径:org.exolab.castor.xml.XMLException
类名称:XMLException
方法名:<init>
[英]Creates a new instance of this class with no message or nested exception.
[中]创建该类的新实例,不包含任何消息或嵌套异常。
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called for a general error.
*
* @param ex the Exception that caused the error.
*/
public void error(Exception ex) throws XMLException {
if (getDocumentLocator() != null) {
String err = "An error occured at line: " + getDocumentLocator().getLineNumber();
throw new XMLException(err, ex);
}
throw new XMLException(ex);
}
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called when an out of order element is encountered
**/
public void outOfOrder(String name) throws XMLException {
String err = new StringBuilder("out of order element <").append(name).append("> found in <")
.append(elementName()).append(">.").toString();
throw new XMLException(err);
}
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called for a general error.
*
* @param ex the Exception that caused the error.
*/
public void error(Exception ex)
throws XMLException
{
if (getDocumentLocator() != null) {
String err = "An error occured at line: " + getDocumentLocator().getLineNumber();
throw new XMLException(err, ex);
}
throw new XMLException(ex);
} //-- error
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called when an out of order element is encountered
**/
public void outOfOrder(String name)
throws XMLException
{
StringBuffer err = new StringBuffer("out of order element <");
err.append(name);
err.append("> found in <");
err.append(elementName());
err.append(">.");
throw new XMLException(err.toString());
}
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
protected URILocation derive(Locator locator, String schemaLocation) throws XMLException {
try {
String documentBase = locator.getSystemId();
if (documentBase != null) {
if (!documentBase.endsWith("/"))
documentBase = documentBase.substring(0, documentBase.lastIndexOf("/") + 1);
}
return getURIResolver().resolve(schemaLocation, documentBase);
} catch (URIException ure) {
throw new XMLException(ure);
}
}
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called for a general error.
*
* @param err the error message to report
**/
public void error(String err) throws XMLException {
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
}
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called for a general error.
* @param err the error message to report
**/
public void error(String err)
throws XMLException
{
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
} //-- error
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called when an illegal Attribute is encountered.
*
* @param attName the name of the illegal attribute.
**/
public void illegalAttribute(String attName) throws XMLException {
String err = "Illegal attribute '" + attName + "' found on element <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
}
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called when an illegal Element is encountered.
*
* @param name the name of the illegal element
**/
public void illegalElement(String name) throws XMLException {
String err = "Illegal element '" + name + "' found as child of <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
}
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
throw new XMLException(errors.toString());
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called when an illegal Attribute is encountered.
* @param attName the name of the illegal attribute.
**/
public void illegalAttribute(String attName)
throws XMLException
{
String err = "Illegal attribute '" + attName +
"' found on element <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
} //-- illegalAttribute
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called when an illegal Element is encountered.
* @param name the name of the illegal element
**/
public void illegalElement(String name)
throws XMLException
{
String err = "Illegal element '" + name +
"' found as child of <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
throw new XMLException(err);
} //-- illegalElement
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
/**
* This method is called when an element which may only be defined once, is redefined.
*
* @param name the name of the element
**/
public void redefinedElement(String name, String xtraInfo) throws XMLException {
String err = "redefintion of element '" + name + "' within element <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
if (xtraInfo != null) {
err += "\n " + xtraInfo;
}
throw new XMLException(err + "\n");
}
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
throw new XMLException(errors.toString());
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
/**
* This method is called when an element which may only
* be defined once, is redefined.
* @param name the name of the element
**/
public void redefinedElement(String name, String xtraInfo)
throws XMLException
{
String err = "redefintion of element '" + name +
"' within element <" + elementName() + ">.";
if (getDocumentLocator() != null) {
err += "\n line: " + getDocumentLocator().getLineNumber();
}
if (xtraInfo != null) {
err += "\n " + xtraInfo;
}
throw new XMLException(err+"\n");
} //-- redefinedElement
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
throw new XMLException(error);
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
throw new XMLException(error);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
throw new XMLException(ure);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.exolab.castor.xml
throw new XMLException(urix);
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
uri = getURIResolver().resolveURN(namespace);
} catch (URIException urix) {
throw new XMLException(urix);
我的类(class)中有以下字段: private List messages; 这是我的映射: 这是我通过编码得到的结果: message1message2 这就是我想要实现的目标: me
我有一个关于 Castor 的快速问题。我想使用 Castor 映射来编码对象列表。这些对象有两种不同的类型,都扩展同一个抽象基类。我希望它们在 xml 中具有不同的标签,但都添加到同一列表中。他们的
您好,我有以下内容,它没有使用bindigs.xml 文件为复杂类型生成类文件。 示例.xsd 文件 This section contains
我有这个架构:
我有这门课: public class Source extends Node { protected DistributionSampler delay ; protected Distri
我想将以下 xml 解码为 MultiKeyMap : 我查看了 Castor API,发现有一个 Collection
我正在慢慢地为这个发疯。我正在尝试像这样解码 XML 文档: DC1 Param 1 Param 2 我有一对简单的 POJO,GetDeadl
我一直在尝试编写一个自定义字段处理程序,该处理程序在写入 XML 时返回 java.awt.Image 对象的哈希码,并在将 XML 绑定(bind)到对象时基于此哈希码检索图像。出于某种原因,我无法
我正在尝试使用 spring 注册我的 castor 映射文件,但我似乎收到了空指针异常。 在我的应用程序上下文中,我有: DistributionS
我想要编码和解码我的类对象列表,比如 java.util.List 。我计划使用 Castor,因此必须使用 Castor-0.9.5.*.jar 版本。 此外,我还有我的编码对象的 XML 架构 (
我有一个奇怪的问题,我的 Castor-Maven-Plugin 生成的 java 类无法解码 XML 字符串的内容。 我尝试验证的 XML 如下所示: ... audio/media ...
我正在使用 Castor 写出用户 ID 到时间间隔的映射。我正在使用它来保存和恢复一项冗长任务的进度,并且我正在尝试使 XML 尽可能紧凑。我的映射是从字符串用户 ID 到包含间隔时间戳的类,以及我
我正在使用 castor 从 java 对象创建 XML 文件。我想在创建 XML 文件时忽略类中的一个字段。 文档 http://castor.codehaus.org/reference/1.3.
我正在尝试使用 Lizzy 库 ( http://lizzy.sourceforge.net/ ) 进行一些播放列表操作。作为依赖项,它要求我的构建路径中有 Castor 库 ( http://www
我正在尝试使用 Castor 1.3.2 使用此程序自动生成映射文件。 但这是我得到的异常(exception) -java.lang.IllegalArgumentException:没有枚举 co
本文整理了Java中org.exolab.castor.xml.XMLException类的一些代码示例,展示了XMLException类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中org.exolab.castor.types.Year类的一些代码示例,展示了Year类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 2 年前。
我在 Spring Batch 中使用 Castor 解码 XML 时遇到了一个非常奇怪的 NoClassDefFoundError 错误。在展示其他内容之前,这是堆栈跟踪: java.lang.No
我正在努力使我的 java 应用程序更符合标准,我面临的最大问题之一是将我们的 ORM 框架从 Castor JDO 转换为 JPA 实现(考虑 Hibernate 或 DataNucleus)。我们
我是一名优秀的程序员,十分优秀!