From e272f29a838d01d357d8c6e1328ff8ffe34b8ce6 Mon Sep 17 00:00:00 2001 From: Ludwig Ruderstaller Date: Wed, 3 Oct 2012 13:15:39 +0200 Subject: [PATCH] copied recursive exception functionality from error/index.phtml to error/404.phtml --- module/Application/view/error/404.phtml | 60 +++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 7 deletions(-) diff --git a/module/Application/view/error/404.phtml b/module/Application/view/error/404.phtml index 3edd37a..323733d 100644 --- a/module/Application/view/error/404.phtml +++ b/module/Application/view/error/404.phtml @@ -46,16 +46,62 @@ if (isset($this->controller_class) -exception) && $this->exception): ?> +display_exceptions) && $this->display_exceptions): ?> -

translate('Exception') ?>:

+exception) && $this->exception instanceof Exception): ?> +
+

translate('Additional information') ?>:

+

exception); ?>

+
+
translate('File') ?>:
+
+
exception->getFile() ?>:exception->getLine() ?>
+
+
translate('Message') ?>:
+
+
exception->getMessage() ?>
+
+
translate('Stack trace') ?>:
+
+
exception->getTraceAsString() ?>
+
+
+exception->getPrevious(); + if ($e) : +?> +
+

translate('Previous exceptions') ?>:

+ + -

escapeHtml($this->exception->getMessage()) ?>

+ -

translate('Stack trace') ?>:

+

translate('No Exception available') ?>

-
-exception->getTraceAsString() ?>
-
+ -- 1.7.10.4