3 // An exception class for lost classes... ;-)
4 class InvalidObjectException extends FrameworkException {
8 * @param $message Message from the exception
9 * @param $code Code number for the exception
12 public final function __construct ($class, $code) {
13 // Add a message around the missing class
14 $message = sprintf("[%s:%d] Objekte sind nicht erlaubt. (Objekt: <u>%s</u>)",
17 $class->getPartDescr()
20 // Call parent constructor
21 parent::__construct($message, $code);