public function load(Model $m, $id) { $data = $this->tryLoad($m, $id); if (!$data) { throw new Exception(['Record was not found', 'model' => $m, 'id' => $id, 'conditions' => $m->conditions], 404); } return $data; }