aboutsummaryrefslogtreecommitdiff
path: root/lib/trails/Exceptions/DoubleRenderError.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/trails/Exceptions/DoubleRenderError.php')
-rw-r--r--lib/trails/Exceptions/DoubleRenderError.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/trails/Exceptions/DoubleRenderError.php b/lib/trails/Exceptions/DoubleRenderError.php
new file mode 100644
index 0000000..c2dfe9e
--- /dev/null
+++ b/lib/trails/Exceptions/DoubleRenderError.php
@@ -0,0 +1,13 @@
+<?php
+namespace Trails\Exceptions;
+
+class DoubleRenderError extends \Trails\Exception
+{
+ public function __construct()
+ {
+ $message = 'Render and/or redirect were called multiple times in this ';
+ $message .= 'action. Please note that you may only call render OR ';
+ $message .= 'redirect, and at most once per action.';
+ parent::__construct(500, $message);
+ }
+}