protected function renderCakeException(CakeException $error) {
		if ($this->isJsonApiRequest()) {
			return $this->renderCakeAsJsonApi($error);
		}

		if ($this->isJsonRequest()) {
			return $this->renderCakeAsJson($error);
		}

		return $this->defaultCakeRender($error);
	}
protected function renderCakeException(CakeException $error) {
		if ($this->isJsonApiRequest()) {
			return $this->renderCakeAsJsonApi($error);
		}

		if ($this->isJsonRequest()) {
			return $this->renderCakeAsJson($error);
		}

		return $this->defaultCakeRender($error);
	}
protected function renderCakeException ( CakeException $ error ) { if ( $ this -> isJsonApiRequest ( ) ) { return $ this -> renderCakeAsJsonApi ( $ error ) ; } if ( $ this -> isJsonRequest ( ) ) { return $ this -> renderCakeAsJson ( $ error ) ; } return $ this -> defaultCakeRender ( $ error ) ; }
render exceptions of type CakeException

@param CakeException $error the CakeException error to render
@return void
render exceptions of type CakeException