ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
UnparseableXmlException.php
Go to the documentation of this file.
1<?php
2
3namespace SAML2\Exception;
4
6{
7 private static $levelMap = array(
8 LIBXML_ERR_WARNING => 'WARNING',
9 LIBXML_ERR_ERROR => 'ERROR',
10 LIBXML_ERR_FATAL => 'FATAL'
11 );
12
13 public function __construct(\LibXMLError $error)
14 {
16 'Unable to parse XML - "%s[%d]": "%s" in "%s" at line %d on column %d"',
17 static::$levelMap[$error->level],
18 $error->code,
19 $error->message,
20 $error->file ?: '(string)',
21 $error->line,
22 $error->column
23 );
24
25 parent::__construct($message);
26 }
27}
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
$error
Definition: Error.php:17
catch(Exception $e) $message