TODO: We should find something better than BaseFrameworkSystem as a type-hint
[shipsimu.git] / ship-simu / application / ship-simu / exceptions / class_ItemNotInPriceListException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class ItemNotInPriceListException extends FrameworkException {
5         public function __construct ($class, $code) {
6                 // Add a message around the missing class
7                 $message = sprintf("[Merchant:] Preis f&uuml;r den Artikel <u>%s</u> <em><u>%s</u></em> nicht gefunden.",
8                         $class->__toString(),
9                         $class->getPartDescr()
10                 );
11
12                 // Call parent constructor
13                 parent::__construct($message, $code);
14         }
15 }
16
17 // [EOF]
18 ?>