032d5e46428b875a93f15acacac91c1ed1036698
[shipsimu.git] / application / ship-simu / exceptions / class_BirthdayInvalidException.php
1 <?php
2
3 // An exception class for lost classes... ;-)
4 class BirthdayInvalidException extends FrameworkException {
5         public function __construct ($birthArray, $code) {
6                 // Cast the array
7                 $birthArray = (array) $birthArray;
8
9                 // Add a message around the missing class
10                 $message = sprintf("Das Geburtsdatum <u>%s</u> ist leider falsch.",
11                         date("d.m.Y", mktime(
12                                 0, 0, 0,
13                                 $birthArray[1],
14                                 $birthArray[2],
15                                 $birthArray[0]
16                         ))
17                 );
18
19                 // Call parent constructor
20                 parent::__construct($message, $code);
21         }
22 }
23
24 // [EOF]
25 ?>