Example #1
0
 /**
  * Set up message/field combination for package.xml validation
  *
  * @param string $msg
  * @param string $field
  */
 public function __construct($msg, $field)
 {
     $this->reason = $msg;
     $msg = 'Channel validator error: field "' . $field . '" - ' . $msg;
     parent::__construct($msg);
     $this->field = $field;
 }
Example #2
0
 function __construct($task, $attribute, $file)
 {
     parent::__construct('task <' . $task . '> is missing attribute "' . $attribute . '" in file ' . $file);
 }
Example #3
0
 function __construct($task, $attribute, $wrongvalue, $file, array $validvalues)
 {
     parent::__construct('task <' . $task . '> attribute "' . $attribute . '" has the wrong value "' . $wrongvalue . '" ' . 'in file ' . $file . ', expecting one of "' . implode(', ', $validvalues) . '"');
 }
Example #4
0
 function __construct($message, $why, $params = array())
 {
     $this->why = $why;
     $this->params = $params;
     parent::__construct($message);
 }
Example #5
0
 function __construct($task, $file)
 {
     parent::__construct('task <' . $task . '> has no attributes in file ' . $file);
 }