TODO: We should find something better than BaseFrameworkSystem as a type-hint
[shipsimu.git] / ship-simu / application / ship-simu / exceptions / class_ShipPartNotConstructableException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class ShipPartNotConstructableException extends FrameworkException {
5         public function __construct (array $partArray, $code) {
6                 // Add a message around the missing class
7                 $message = sprintf("Schiffteil <u>%s</u> ist nicht constrierbar!",
8                         $partArray[0]
9                 );
10
11                 // Call parent constructor
12                 parent::__construct($message, $code);
13         }
14 }
15
16 // [EOF]
17 ?>