Ejemplo n.º 1
0
 /**
  * Constructs a new exception for the specified model
  *
  * @param  string     $alias       The alias to use when looking for error messages
  * @param  Validation $object      The Validation object of the model
  * @param  string     $message     The error message
  * @param  array      $values      The array of values for the error message
  * @param  integer    $code        The error code for the exception
  * @return void
  */
 public function __construct($alias, Validation $object, $message = 'Failed to validate array', array $values = NULL, $code = 0, Exception $previous = NULL)
 {
     $this->_alias = $alias;
     $this->_objects['_object'] = $object;
     $this->_objects['_has_many'] = FALSE;
     parent::__construct($message, $values, $code, $previous);
 }
Ejemplo n.º 2
0
 public function __construct(Validation $array, $message = 'Failed to validate array', array $values = NULL, $code = 0, Exception $previous = NULL)
 {
     $this->array = $array;
     parent::__construct($message, $values, $code, $previous);
 }
Ejemplo n.º 3
0
 public function __construct($message = NULL, array $variables = NULL, Exception $previous = NULL)
 {
     parent::__construct($message, $variables, $this->_code, $previous);
 }