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
00034 $elements = "";
00035 if ((isset($classArray[2])) && (is_array($classArray[2]))) {
00036
00037 $elements = implode("</u>, <u>", $classArray[2]);
00038 } else {
00039
00040 $elements = "invalid_data";
00041 }
00042
00043
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
00052 parent::__construct($message, $code);
00053 }
00054 }
00055
00056
00057 ?>