code: public function error(Callable $action = null)
  	{
  		if ($action) $this->errorAction = $action;
  		return $this->errorAction;
  	}
docs: Get or set error action
  
  @param Callable|null $action action to be executed
  
  @return Callable