Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * 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());
 }