class_DimNotFoundInArrayException.php

Go to the documentation of this file.
00001 <?php
00024 class DimNotFoundInArrayException extends FrameworkException {
00032         public function __construct (FrameworkInterface $class, $code) {
00033                 if (is_object($class)) {
00034                         // Add a message around the missing class
00035                         $message = sprintf("[%s:%d] Dimensions not found in array, array is invalid!",
00036                                 $class->__toString(),
00037                                 $this->getLine()
00038                         );
00039                 } else {
00040                         // No class given
00041                         $message = sprintf("Please provide a class for <span class=\"exception_reason\">%s</span>", __CLASS__);
00042                 }
00043 
00044                 // Call parent constructor
00045                 parent::__construct($message, $code);
00046         }
00047 }
00048 
00049 // [EOF]
00050 ?>

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