Class xmlBeanDefinitionStoreException

All Implemented Interfaces:
Serializable

public class xmlBeanDefinitionStoreException extends BeanDefinitionStoreException
xml-specific BeanDefinitionStoreException subclass that wraps a SAXException, typically a SAXParseException which contains information about the error location.
Since:
2.0.2
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • xmlBeanDefinitionStoreException

      public xmlBeanDefinitionStoreException(String resourceDescription, String msg, SAXException cause)
      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
      See Also:
  • Method Details

    • getLineNumber

      public int getLineNumber()
      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: