class_InvalidXmlNodeException.php
Go to the documentation of this file.00001 <?php
00024 class InvalidXmlNodeException extends FrameworkException {
00032 public function __construct (array $classArray, $code) {
00033
00034 $attributes = "<em>None</em>";
00035 if ((is_array($classArray[2])) && (count($classArray[2]) > 0)) {
00036 $attributes = implode(", ", $classArray[2]);
00037 }
00038
00039
00040 $message = sprintf("[%s:%d] Invalid XML node found: %s, attributes: %s.",
00041 $classArray[0]->__toString(),
00042 $this->getLine(),
00043 $classArray[1],
00044 $attributes
00045 );
00046
00047
00048 parent::__construct($message, $code);
00049 }
00050 }
00051
00052
00053 ?>