| 1 | <?php |
||
| 4 | class LibXmlException extends SchemaValidatorException |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Checks for errors in libxml, if found clear the errors and chain all the error messages |
||
| 8 | * |
||
| 9 | * @throws LibXmlException when found a libxml error |
||
| 10 | */ |
||
| 11 | 9 | public static function throwFromLibXml() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Execute a callable ensuring that the execution will occur inside an environment |
||
| 30 | * where libxml use internal errors is true. |
||
| 31 | * |
||
| 32 | * After executing the callable the value of libxml use internal errors is set to |
||
| 33 | * previous value. |
||
| 34 | * |
||
| 35 | * @param callable $callable |
||
| 36 | * @return mixed |
||
| 37 | * |
||
| 38 | * @throws LibXmlException if some error inside libxml was found |
||
| 39 | */ |
||
| 40 | 9 | public static function useInternalErrors(callable $callable) |
|
| 54 | } |
||
| 55 |