[Minor] also log exception when fail to parse element from DB XML
This commit is contained in:
parent
69c842034a
commit
0fe7778af5
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue