/** * Create the exception using the view path. * * @param class $viewPath The path to the missing view file. * * @todo Get message from properties file? Possibly dangerous in exceptions. */ public function __construct($viewPath) { // assemblemessage $message = "The view file \"" . $viewPath . "\" was not found."; // make sure everything is assigned properly parent::__construct($message, $this->getCodeFromProperties()); }
/** * Create the exception from the action definition. * * @param class $actionDef The action definition. * * @todo Get message from properties file? Possibly dangerous in exceptions. */ public function __construct($actionDef) { global $UBAR_GLOB; // assemble message $message = "The action class \"" . $actionDef->getClassName() . "\" was not found at \"" . $UBAR_GLOB['BASE_ACTION_PATH'] . $actionDef->getActionLocation() . "\"."; // make sure everything is assigned properly parent::__construct($message, $this->getCodeFromProperties()); }