summaryrefslogtreecommitdiff
path: root/engine/exceptions
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-01-31 06:11:00 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-01-31 20:45:40 +0300
commitc0dc531ebefd8912819f3b6c8bda1fed3c7e750c (patch)
tree2c75aa9df182260aef09faf4befd81a4c2b9c5e2 /engine/exceptions
parent48d688cdf7f9eae1bf11b8a6f0e5b98687c604cb (diff)
make it simple, but not simpler
Diffstat (limited to 'engine/exceptions')
-rw-r--r--engine/exceptions/ForbiddenException.php9
-rw-r--r--engine/exceptions/NotFoundException.php9
-rw-r--r--engine/exceptions/NotImplementedException.php9
-rw-r--r--engine/exceptions/UnauthorizedException.php9
4 files changed, 0 insertions, 36 deletions
diff --git a/engine/exceptions/ForbiddenException.php b/engine/exceptions/ForbiddenException.php
deleted file mode 100644
index 4184908..0000000
--- a/engine/exceptions/ForbiddenException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-class ForbiddenException extends BadMethodCallException {
-
- public function __construct(string $message = '') {
- parent::__construct($message, 403);
- }
-
-} \ No newline at end of file
diff --git a/engine/exceptions/NotFoundException.php b/engine/exceptions/NotFoundException.php
deleted file mode 100644
index 211106f..0000000
--- a/engine/exceptions/NotFoundException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-class NotFoundException extends BadMethodCallException {
-
- public function __construct(string $message = '') {
- parent::__construct($message, 404);
- }
-
-} \ No newline at end of file
diff --git a/engine/exceptions/NotImplementedException.php b/engine/exceptions/NotImplementedException.php
deleted file mode 100644
index 1c4562a..0000000
--- a/engine/exceptions/NotImplementedException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-class NotImplementedException extends BadMethodCallException {
-
- public function __construct(string $message = '') {
- parent::__construct($message, 501);
- }
-
-} \ No newline at end of file
diff --git a/engine/exceptions/UnauthorizedException.php b/engine/exceptions/UnauthorizedException.php
deleted file mode 100644
index 84a1251..0000000
--- a/engine/exceptions/UnauthorizedException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-class UnauthorizedException extends BadMethodCallException {
-
- public function __construct(string $message = '') {
- parent::__construct($message, 401);
- }
-
-} \ No newline at end of file