diff --git a/src/exceptions/BadRequestException.php b/src/exceptions/BadRequestException.php new file mode 100644 index 0000000000000000000000000000000000000000..fd174a8d109f8bf861a5f25c7fedf24cee2a0e6b --- /dev/null +++ b/src/exceptions/BadRequestException.php @@ -0,0 +1,11 @@ +<?php + + +class BadRequestException extends Exception +{ + // Previous is previous exception that caused this exception to be thrown, so it can be traced and only be intercepted in view layer + public function __construct($message = "", $code = 0, Throwable $previous = null) + { + parent::__construct($message, $code, $previous); + } +} \ No newline at end of file diff --git a/src/exceptions/MethodNotAllowedException.php b/src/exceptions/MethodNotAllowedException.php new file mode 100644 index 0000000000000000000000000000000000000000..7a2520b94da487ef48f5557cdd09746be38953dc --- /dev/null +++ b/src/exceptions/MethodNotAllowedException.php @@ -0,0 +1,10 @@ +<?php + +class MethodNotAllowedException extends Exception +{ + // Previous is previous exception that caused this exception to be thrown, so it can be traced and only be intercepted in view layer + public function __construct($message = "", $code = 0, Throwable $previous = null) + { + parent::__construct($message, $code, $previous); + } +} \ No newline at end of file