public function __construct($model, $filter) { if (is_array($filter)) { $filter = json_encode($filter); } parent::__construct(sprintf("Could not find model for '%s' with '%s'.", $model, $filter)); }
public function __construct() { parent::__construct('Entity was not found.'); }
public function __construct() { parent::__construct('No result was found for query although at least one row was expected.'); }
public function __construct($msg, $entity) { parent::__construct($msg); $this->entity = $entity; }
public function __construct($model) { parent::__construct(sprintf("Could not destroy '%s'. Either there was no model to destroy " . "or you destroyed more than one model. Are you sure the model " . "was actually saved to the database in the first place?", $model)); }
public function __construct() { parent::__construct('Entity was found although one item was expected.'); }
public function __construct($message, $code = 0, Exception $previous = null) { parent::__construct($message, $code, $previous); }
public function __construct($model, $attr, $value) { parent::__construct(sprintf("You tried to set the invalid value '%s' for the '%s' relation " . "on the '%s' model. In general, relationships only support " . "assignment with collections, queries, and individual models.", $value, $attr, $model)); }
/** * Constructor. */ public function __construct($class) { parent::__construct("Entity of type '{$class}' was not found."); }