aboutsummaryrefslogtreecommitdiff
path: root/lib/trails/Exceptions/SessionRequiredException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/trails/Exceptions/SessionRequiredException.php')
-rw-r--r--lib/trails/Exceptions/SessionRequiredException.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/trails/Exceptions/SessionRequiredException.php b/lib/trails/Exceptions/SessionRequiredException.php
new file mode 100644
index 0000000..b77a344
--- /dev/null
+++ b/lib/trails/Exceptions/SessionRequiredException.php
@@ -0,0 +1,11 @@
+<?php
+namespace Trails\Exceptions;
+
+class SessionRequiredException extends \Trails\Exception
+{
+ public function __construct()
+ {
+ $message = 'Tried to access a non existing session.';
+ parent::__construct(500, $message);
+ }
+}