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                 // Extract attributes
00034                 $attributes = "<em>None</em>";
00035                 if ((is_array($classArray[2])) && (count($classArray[2]) > 0)) {
00036                         $attributes = implode(", ", $classArray[2]);
00037                 } // END - if
00038 
00039                 // Construct our message
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                 // Call parent exception constructor
00048                 parent::__construct($message, $code);
00049         }
00050 }
00051 
00052 // [EOF]
00053 ?>

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