class_MissingArrayElementsException.php

Go to the documentation of this file.
00001 <?php
00024 class MissingArrayElementsException extends FrameworkException {
00032         public function __construct (array $classArray, $code) {
00033                 // Extract all elements
00034                 $elements = "";
00035                 if ((isset($classArray[2])) && (is_array($classArray[2]))) {
00036                         // Convert into strings
00037                         $elements = implode("</u>, <u>", $classArray[2]);
00038                 } else {
00039                         // Invalid data
00040                         $elements = "invalid_data";
00041                 }
00042 
00043                 // Add a message around the missing class
00044                 $message = sprintf("[%s:%d] Array <u>%s()</u> Does not have these elements: <span class=\"exception_reason\">%s</span>",
00045                         $classArray[0]->__toString(),
00046                         $this->getLine(),
00047                         $classArray[1],
00048                         $elements
00049                 );
00050 
00051                 // Call parent constructor
00052                 parent::__construct($message, $code);
00053         }
00054 }
00055 
00056 // [EOF]
00057 ?>

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