0.3.0 inital import
[mailer.git] / inc / classes / exceptions / template / class_InvalidTemplateVariableNameException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class InvalidTemplateVariableNameException extends FrameworkException {
5         /**
6          * The constructor
7          *
8          * @param               $class          An array holding our informations
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                 $message = sprintf("[%s:%d] Die im Template <u>%s</u> gefundene Variable <u>%s</u> ist nicht g&uuml;ltig! G&uuml;ltige Variablennamen sind nur <u>%s</strong>.",
15                         $class[0]->__toString(),
16                         $this->getLine(),
17                         basename($class[1]),
18                         $class[2],
19                         $class[3]->readConfig("tpl_valid_var")
20                 );
21
22                 // Call parent constructor
23                 parent::__construct($message, $code);
24         }
25 }
26
27 // [EOF]
28 ?>