class_XmlParserException.php
Go to the documentation of this file.00001 <?php
00024 class XmlParserException extends FrameworkException {
00032 public function __construct (array $classArray, $code) {
00033
00034 $message = sprintf("[%s:%d] XML Error: %s at line %d.",
00035 $classArray[0]->__toString(),
00036 $this->getLine(),
00037 xml_error_string(xml_get_error_code($classArray[1])),
00038 xml_get_current_line_number($classArray[1])
00039 );
00040
00041
00042 parent::__construct($message, $code);
00043 }
00044 }
00045
00046
00047 ?>