List of usage examples for org.springframework.beans.factory.xml XmlBeanDefinitionStoreException getCause
public synchronized Throwable getCause()
From source file:com.predic8.membrane.core.config.spring.TrackingFileSystemXmlApplicationContext.java
public static void handleXmlBeanDefinitionStoreException(XmlBeanDefinitionStoreException e) throws InvalidConfigurationException { Throwable cause = e.getCause(); if (cause != null) { if (cause instanceof SAXParseException) { int line = ((SAXParseException) cause).getLineNumber(); throw new InvalidConfigurationException("line " + line + ": " + cause.getMessage()); }//w w w . j a va2s .c o m } throw e; }