aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/OAuth2/Exceptions/SetupError.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/OAuth2/Exceptions/SetupError.php')
-rw-r--r--lib/classes/OAuth2/Exceptions/SetupError.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/classes/OAuth2/Exceptions/SetupError.php b/lib/classes/OAuth2/Exceptions/SetupError.php
new file mode 100644
index 0000000..e7b9928
--- /dev/null
+++ b/lib/classes/OAuth2/Exceptions/SetupError.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace Studip\OAuth2\Exceptions;
+
+use League\OAuth2\Server\Exception\OAuthServerException;
+
+class SetupError extends OAuthServerException
+{
+ public function __construct()
+ {
+ $message = _('Das OAuth2-Setup dieser Stud.IP-Installation ist fehlerhaft.');
+
+ parent::__construct($message, 500, 'invalid_setup', 500);
+ }
+}