[Minor] also log exception when fail to parse element from DB XML

This commit is contained in:
Robert von Burg 2015-04-19 16:38:25 +02:00
parent 69c842034a
commit 0fe7778af5
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class PostgreSqlOrderDao extends PostgresqlDao<Order> implements OrderDao
parser.parse(binaryStream, new XmlModelSaxReader(listener));
} catch (SQLException | IOException | SAXException | ParserConfigurationException e) {
throw new StrolchPersistenceException(MessageFormat.format(
"Failed to extract Order from sqlxml value for {0} / {1}", id, type));
"Failed to extract Order from sqlxml value for {0} / {1}", id, type), e);
}
if (listener.getOrders().size() == 0)

View File

@ -70,7 +70,7 @@ public class PostgreSqlResourceDao extends PostgresqlDao<Resource> implements Re
parser.parse(binaryStream, new XmlModelSaxReader(listener));
} catch (SQLException | IOException | SAXException | ParserConfigurationException e) {
throw new StrolchPersistenceException(MessageFormat.format(
"Failed to extract Resource from sqlxml value for {0} / {1}", id, type));
"Failed to extract Resource from sqlxml value for {0} / {1}", id, type), e);
}
if (listener.getResources().size() == 0)