Top Description Constructors Methods
org.springframework.beans.factory.xml

public Class XmlBeanDefinitionStoreException

extends BeanDefinitionStoreException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.xml.sax.SAXException, .SAXParseException, org.springframework.beans.factory.BeanDefinitionStoreException

XML-specific BeanDefinitionStoreException subclass that wraps a org.xml.sax.SAXException, typically a org.xml.sax.SAXParseException which contains information about the error location.
Author
Juergen Hoeller
Since
2.0.2
See Also
getLineNumber(), org.xml.sax.SAXParseException

Constructor Summary

AccessConstructor and Description
public
XmlBeanDefinitionStoreException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the detail message (used as exception message as-is)
msg
,
SAXException
the SAXException (typically a SAXParseException) root cause
cause
)

Create a new XmlBeanDefinitionStoreException.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the line number if available (in case of a SAXParseException); -1 else
getLineNumber
()

Return the line number in the XML resource that failed.

Inherited from org.springframework.beans.factory.BeanDefinitionStoreException:
getBeanNamegetResourceDescription

Constructor Detail

XmlBeanDefinitionStoreExceptionback to summary
public XmlBeanDefinitionStoreException(String resourceDescription, String msg, SAXException cause)

Create a new XmlBeanDefinitionStoreException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

msg:String

the detail message (used as exception message as-is)

cause:SAXException

the SAXException (typically a SAXParseException) root cause

See Also
org.xml.sax.SAXParseException

Method Detail

getLineNumberback to summary
public int getLineNumber()

Return the line number in the XML resource that failed.

Returns:int

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

See Also
org.xml.sax.SAXParseException#getLineNumber()