From c4ed49cb1a0a12ca153606cb1949b42ba740011b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 21 May 2015 16:43:58 +0200 Subject: [PATCH] lib: Add HttpNotFoundException The HttpNotFoundException should be used for sending a HTTP 404 response w/ a custom message. There's also Zend_Controller_Action_Exception but this exception will always show 'Page not found' because we want to hide messages generated by Zend, like 'Action "foobar" does not exist and was not trapped in __call()'. refs #6281 --- library/Icinga/Exception/HttpNotFoundException.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 library/Icinga/Exception/HttpNotFoundException.php diff --git a/library/Icinga/Exception/HttpNotFoundException.php b/library/Icinga/Exception/HttpNotFoundException.php new file mode 100644 index 000000000..09febf0b4 --- /dev/null +++ b/library/Icinga/Exception/HttpNotFoundException.php @@ -0,0 +1,11 @@ +