3 // An exception class for lost classes... ;-)
4 class ContractAllreadySignedException extends FrameworkException {
5 public function __construct ($classArray, $code) {
7 $classArray = (array) $classArray;
9 // Add a message around the missing class
10 $message = sprintf("[%s:] Die Vertragsparteien <u>%s</u> und <u>%s</u> haben den Vertrag bereits unterzeichnet!",
11 $classArray[0]->__toString(),
12 $classArray[1]->getCompanyName(),
13 $classArray[2]->getCompanyName()
16 // Call parent constructor
17 parent::__construct($message, $code);