class_InvalidCommandException.php

Go to the documentation of this file.
00001 <?php
00024 class InvalidCommandException extends FrameworkException {
00032         public function __construct (array $msgArray, $code) {
00033                 // Add a message around the missing class
00034                 $message = sprintf("[%s:%d] Invalid command <span class=\"exception_reason\">%s (class %s)</span> detected.",
00035                         $msgArray[0]->__toString(),
00036                         $this->getLine(),
00037                         $msgArray[1],
00038                         $msgArray[0]->getClassName()
00039                 );
00040 
00041                 // Set extra data
00042                 $this->setExtraData($msgArray[0]->getClassName().":".$this->getLine());
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