/**
* The constructor
*
- * @param $classArray Array with class
+ * @param $classArray Array with exception data
* @param $code Code number for the exception
* @return void
*/
public function __construct (array $classArray, $code) {
- // Cast the array
- $classArray = (array) $classArray;
-
// Add a message around the missing class
$message = sprintf("[%s:%d] Configuration entry <span id=\"exception_reason\">%s</span> not found.",
$classArray[0],
$classArray[1]
);
+ // Set extra data
+ $this->setExtraData($classArray[1]);
+
// Call parent constructor
parent::__construct($message, $code);
}