diff options
author | Simon Rettberg | 2024-10-23 16:25:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-10-23 16:25:51 +0200 |
commit | 931a74c290a5dc7e9a54c72336b5c217a3bb229d (patch) | |
tree | 6c585b2342ab7e2900d2da1fb61ba123bb711e20 /src | |
parent | BFTP: Rename threadpool, add comment (diff) | |
download | master-sync-shared-931a74c290a5dc7e9a54c72336b5c217a3bb229d.tar.gz master-sync-shared-931a74c290a5dc7e9a54c72336b5c217a3bb229d.tar.xz master-sync-shared-931a74c290a5dc7e9a54c72336b5c217a3bb229d.zip |
[libvirt] Improve error reporting by not swallowing stack trace
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openslx/libvirt/xml/LibvirtXmlSchemaValidator.java | 2 | ||||
-rw-r--r-- | src/main/java/org/openslx/libvirt/xml/LibvirtXmlValidationException.java | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlSchemaValidator.java b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlSchemaValidator.java index d589d41..da24878 100644 --- a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlSchemaValidator.java +++ b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlSchemaValidator.java @@ -277,7 +277,7 @@ public class LibvirtXmlSchemaValidator StreamSource source = LibvirtXmlSchemaValidator.toStreamSource( domSource ); this.rngSchemaValidator.validate( source ); } catch ( SAXException | TransformerException | IOException e ) { - throw new LibvirtXmlValidationException( e.getLocalizedMessage() ); + throw new LibvirtXmlValidationException( e ); } } } diff --git a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlValidationException.java b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlValidationException.java index 24e9db7..3afe85a 100644 --- a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlValidationException.java +++ b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlValidationException.java @@ -22,4 +22,10 @@ public class LibvirtXmlValidationException extends Exception { super( errorMsg ); } + + public LibvirtXmlValidationException( Exception other ) + { + super( other ); + } + } |