类 XmlBeanDefinitionStoreException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.FatalBeanException
- org.springframework.beans.factory.BeanDefinitionStoreException
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
- 所有已实现的接口:
Serializable
public class XmlBeanDefinitionStoreException extends BeanDefinitionStoreException
XML-specific BeanDefinitionStoreException subclass that wraps aSAXException
, typically aSAXParseException
which contains information about the error location.- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
getLineNumber()
,SAXParseException
, 序列化表格
构造器概要
构造器 构造器 说明 XmlBeanDefinitionStoreException(String resourceDescription, String msg, SAXException cause)
Create a new XmlBeanDefinitionStoreException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getLineNumber()
Return the line number in the XML resource that failed.从类继承的方法 org.springframework.beans.factory.BeanDefinitionStoreException
getBeanName, getResourceDescription
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
XmlBeanDefinitionStoreException
public XmlBeanDefinitionStoreException(String resourceDescription, String msg, SAXException cause)
Create a new XmlBeanDefinitionStoreException.- 参数:
resourceDescription
- description of the resource that the bean definition came frommsg
- the detail message (used as exception message as-is)cause
- the SAXException (typically a SAXParseException) root cause- 另请参阅:
SAXParseException
方法详细资料
getLineNumber
public int getLineNumber()
Return the line number in the XML resource that failed.- 返回:
- the line number if available (in case of a SAXParseException); -1 else
- 另请参阅:
SAXParseException.getLineNumber()