|
@@ -53,7 +53,7 @@ class XliffFileLoader implements LoaderInterface
|
|
|
$dom = new \DOMDocument();
|
|
|
$current = libxml_use_internal_errors(true);
|
|
|
if (!@$dom->load($file, LIBXML_COMPACT)) {
|
|
|
- throw new \Exception(implode("\n", $this->getXmlErrors()));
|
|
|
+ throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
|
|
|
}
|
|
|
|
|
|
$location = str_replace('\\', '/', __DIR__).'/schema/dic/xliff-core/xml.xsd';
|
|
@@ -73,7 +73,7 @@ class XliffFileLoader implements LoaderInterface
|
|
|
$source = str_replace('http://www.w3.org/2001/xml.xsd', $location, $source);
|
|
|
|
|
|
if (!@$dom->schemaValidateSource($source)) {
|
|
|
- throw new \Exception(implode("\n", $this->getXmlErrors()));
|
|
|
+ throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
|
|
|
}
|
|
|
$dom->validateOnParse = true;
|
|
|
$dom->normalizeDocument();
|