public class

XmlBeanDefinitionStoreException

extends BeanDefinitionStoreException
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

Class Overview

XML-specific BeanDefinitionStoreException subclass that wraps a org.xml.sax.SAXException, typically a org.xml.sax.SAXParseException which contains information about the error location.

Summary

Public Constructors
XmlBeanDefinitionStoreException(String resourceDescription, String msg, SAXException cause)
Create a new XmlBeanDefinitionStoreException.
Public Methods
int getLineNumber()
Return the line number in the XML resource that failed.
[Expand]
Inherited Methods
From class org.springframework.beans.factory.BeanDefinitionStoreException
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public XmlBeanDefinitionStoreException (String resourceDescription, String msg, SAXException cause)

Also: SpringBeans

Create a new XmlBeanDefinitionStoreException.

Parameters
resourceDescription description of the resource that the bean definition came from
msg the detail message (used as exception message as-is)
cause the SAXException (typically a SAXParseException) root cause

Public Methods

public int getLineNumber ()

Also: SpringBeans

Return the line number in the XML resource that failed.

Returns
  • the line number if available (in case of a SAXParseException); -1 else
See Also