]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/config/exception/UnauthorizedConfigException.php
Move config exception to dedicated classes with proper namespace
[github/shaarli/Shaarli.git] / application / config / exception / UnauthorizedConfigException.php
diff --git a/application/config/exception/UnauthorizedConfigException.php b/application/config/exception/UnauthorizedConfigException.php
new file mode 100644 (file)
index 0000000..79672c1
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+
+namespace Shaarli\Config\Exception;
+
+/**
+ * Exception used if an unauthorized attempt to edit configuration has been made.
+ */
+class UnauthorizedConfigException extends \Exception
+{
+    /**
+     * Construct exception.
+     */
+    public function __construct()
+    {
+        $this->message = 'You are not authorized to alter config.';
+    }
+}