Objects: throw not found

This commit is contained in:
Thomas Gelf 2018-06-14 08:59:48 +02:00
parent 0026e7fd61
commit 810e873566
2 changed files with 9 additions and 3 deletions

View File

@ -44,6 +44,11 @@ class IcingaObjectsHandler extends RequestHandler
return $this->table;
}
/**
* @throws ProgrammingError
* @throws \Zend_Db_Select_Exception
* @throws \Zend_Db_Statement_Exception
*/
protected function streamJsonResult()
{
$this->response->setHeader('Content-Type', 'application/json', true);

View File

@ -57,7 +57,7 @@ abstract class ObjectsController extends ActionController
/**
* @return IcingaObjectsHandler
* @throws \Icinga\Exception\ConfigurationError
* @throws \Icinga\Exception\IcingaException
* @throws NotFoundError
*/
protected function apiRequestHandler()
{
@ -84,7 +84,7 @@ abstract class ObjectsController extends ActionController
/**
* @throws \Icinga\Exception\ConfigurationError
* @throws \Icinga\Exception\Http\HttpNotFoundException
* @throws \Icinga\Exception\IcingaException
* @throws NotFoundError
*/
public function indexAction()
{
@ -171,7 +171,8 @@ abstract class ObjectsController extends ActionController
* Passing render=tree switches to the tree view.
* @throws \Icinga\Exception\ConfigurationError
* @throws \Icinga\Exception\Http\HttpNotFoundException
* @throws \Icinga\Exception\IcingaException
* @throws \Icinga\Security\SecurityException
* @throws NotFoundError
*/
public function templatesAction()
{