ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Exception\UnparseableXmlException Class Reference
+ Inheritance diagram for SAML2\Exception\UnparseableXmlException:
+ Collaboration diagram for SAML2\Exception\UnparseableXmlException:

Public Member Functions

 __construct (\LibXMLError $error)
 

Static Private Attributes

static $levelMap
 

Detailed Description

Definition at line 5 of file UnparseableXmlException.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Exception\UnparseableXmlException::__construct ( \LibXMLError  $error)

Definition at line 13 of file UnparseableXmlException.php.

References $message.

14  {
15  $message = sprintf(
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  }
catch(Exception $e) $message

Field Documentation

◆ $levelMap

SAML2\Exception\UnparseableXmlException::$levelMap
staticprivate
Initial value:
= array(
LIBXML_ERR_WARNING => 'WARNING',
LIBXML_ERR_ERROR => 'ERROR',
LIBXML_ERR_FATAL => 'FATAL'
)

Definition at line 7 of file UnparseableXmlException.php.


The documentation for this class was generated from the following file: