Add root exception to new exception

This is needed to get an idea why the context could not be created.
This commit is contained in:
René Pfeuffer
2020-09-15 15:15:12 +02:00
parent e3128d1c7e
commit 32d500cc44

View File

@@ -48,7 +48,7 @@ final class TypedStoreContext<T> {
JAXBContext jaxbContext = JAXBContext.newInstance(parameters.getType());
return new TypedStoreContext<>(jaxbContext, parameters);
} catch (JAXBException e) {
throw new StoreException("failed to create context for store");
throw new StoreException("failed to create context for store", e);
}
}