diff options
-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 ); + } + } |