aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/config/exception/UnauthorizedConfigException.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/config/exception/UnauthorizedConfigException.php')
-rw-r--r--application/config/exception/UnauthorizedConfigException.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/config/exception/UnauthorizedConfigException.php b/application/config/exception/UnauthorizedConfigException.php
new file mode 100644
index 00000000..79672c1b
--- /dev/null
+++ b/application/config/exception/UnauthorizedConfigException.php
@@ -0,0 +1,18 @@
1<?php
2
3
4namespace Shaarli\Config\Exception;
5
6/**
7 * Exception used if an unauthorized attempt to edit configuration has been made.
8 */
9class UnauthorizedConfigException extends \Exception
10{
11 /**
12 * Construct exception.
13 */
14 public function __construct()
15 {
16 $this->message = 'You are not authorized to alter config.';
17 }
18}