headers('allow', $methods); return $this; } /** * Validate this exception contains everything needed to continue. * * @throws Kohana_Exception * @return bool */ public function check() { if ($this->headers('allow') === NULL) throw new Kohana_Exception('A list of allowed methods must be specified'); return TRUE; } }