aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/restapi/RouterException.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-19 14:13:42 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-06-19 14:13:42 +0000
commitd4d5c311ec24ddc92c8d9053f9eeb37acf44f395 (patch)
tree76591780b670da7891f03ae31a63c77668c8e9ef /lib/classes/restapi/RouterException.php
parent45ed79fbcc9a8c9be7f236b24b4c6a117b48184f (diff)
remove restapi, fixes #2798
Closes #2798 Merge request studip/studip!1888
Diffstat (limited to 'lib/classes/restapi/RouterException.php')
-rw-r--r--lib/classes/restapi/RouterException.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/classes/restapi/RouterException.php b/lib/classes/restapi/RouterException.php
deleted file mode 100644
index 1ce2afc..0000000
--- a/lib/classes/restapi/RouterException.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-namespace RESTAPI;
-use \Exception;
-
-/**
- * Router exception.
- *
- * @author Jan-Hendrik Willms <tleilax+studip@gmail.com>
- * @author <mlunzena@uos.de>
- * @license GPL 2 or later
- * @since Stud.IP 3.0
- * @deprecated Since Stud.IP 5.0. Will be removed in Stud.IP 6.0.
- */
-class RouterException extends Exception
-{
- protected static $error_messages = [
- 400 => 'Bad Request',
- 401 => 'Unauthorized',
- 403 => 'Forbidden',
- 404 => 'Not Found',
- 405 => 'Method Not Allowed',
- 500 => 'Internal Server Error',
- 501 => 'Not implemented',
- ];
-
- public function __construct($code = 500, $message = '', $previous = null)
- {
- $message = $message ?: self::$error_messages[$code] ?: '';
- parent::__construct($message, $code, $previous);
- }
-}