0.3.0 inital import
[mailer.git] / inc / classes / exceptions / main / class_DimNotFoundInArrayException.php
1 <?php
2
3 // Unsere eigene Exception!
4 class DimNotFoundInArrayException extends FrameworkException {
5         /**
6          * The constructor
7          *
8          * @param               $message                Message from the exception
9          * @param               $code           Code number for the exception
10          * @return      void
11          */
12         public final function __construct ($class, $code) {
13                 if (is_object($class)) {
14                         // Add a message around the missing class
15                         $message = sprintf("[%s:%d] Abmasse konnten nicht extrahiert werden!",
16                                 $class->__toString(),
17                                 $this->getLine()
18                         );
19                 } else {
20                         // No class given
21                         $message = sprintf("Please provide a class for <u>%s</u>", __CLASS__);
22                 }
23
24                 // Call parent constructor
25                 parent::__construct($message, $code);
26         }
27 }
28
29 // [EOF]
30 ?>