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                 // Construct our message
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                 // Call parent exception constructor
00042                 parent::__construct($message, $code);
00043         }
00044 }
00045 
00046 // [EOF]
00047 ?>

Generated on Mon Dec 8 01:06:45 2008 for Ship-Simulator by  doxygen 1.5.6