Simplify exceptions in HttpInput

This commit is contained in:
Alex Cabal 2025-02-24 14:42:49 -06:00
parent 3ff13397f0
commit 0a684facee
3 changed files with 6 additions and 17 deletions

View file

@ -97,7 +97,7 @@ try{
catch(Exceptions\LoginRequiredException){
Template::RedirectToLogin();
}
catch(Exceptions\InvalidPermissionsException | Exceptions\InvalidHttpMethodException | Exceptions\HttpMethodNotAllowedException){
catch(Exceptions\InvalidPermissionsException | Exceptions\HttpMethodNotAllowedException){
Template::ExitWithCode(Enums\HttpCode::Forbidden);
}
catch(Exceptions\InvalidEbookException | Exceptions\EbookPlaceholderExistsException | Exceptions\InvalidProjectException $ex){