1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-26 13:44:55 +01:00

Visualizzazione errore #470

This commit is contained in:
Thomas Zilio 2019-02-01 16:02:05 +01:00
parent ad87545011
commit 18b54175e0

View File

@ -2,7 +2,7 @@
namespace Util;
use UnexpectedValueException;
use Exception;
/**
* Classe dedicata all'interpretazione dei file XML.
@ -28,7 +28,7 @@ class XML
if ($xml === false) {
$message = libxml_get_last_error()->message;
throw new UnexpectedValueException($message);
throw new Exception($message);
}
$result = json_decode(json_encode($xml), true);