]> git.mxchange.org Git - mailer.git/blob - inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php
0.3.0 inital import
[mailer.git] / inc / classes / exceptions / io / class_InvalidMD5ChecksumException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class InvalidMD5ChecksumException 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 ($array, $code) {
13                 // Cast the array
14                 $array = (array) $array;
15
16                 // Add a message around the missing class
17                 $message = sprintf("[%s:%d] Die MD5-Pr&uuml;fsummen <u>%s</u> und <u>%s</u> stimmen nicht &uuml;berein!",
18                         $array[0]->__toString(),
19                         $this->getLine(),
20                         $array[1],
21                         $array[2]
22                 );
23
24                 // Call parent constructor
25                 parent::__construct($message, $code);
26         }
27 }
28
29 // [EOF]
30 ?>