]> git.mxchange.org Git - mailer.git/blob - inc/classes/exceptions/io/class_InvalidDirectoryResourceException.php
673709b855d9e71ca7de318b2a69222a94df37cc
[mailer.git] / inc / classes / exceptions / io / class_InvalidDirectoryResourceException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class InvalidDirectoryResourceException 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                 // Add a message around the missing class
14                 if (is_null($class)) {
15                         $message = "[???:] Ung&uuml;tige Verzeichnis-Resource.";
16                 } elseif (is_object($class)) {
17                         $message = sprintf("[%s:%d] Ung&uuml;tige Verzeichnis-Resource.",
18                                 $class->__toString(),
19                                 $this->getLine()
20                         );
21                 }
22
23                 // Call parent constructor
24                 parent::__construct($message, $code);
25         }
26 }
27
28 // [EOF]
29 ?>