mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Simplify exceptions in HttpInput
This commit is contained in:
parent
3ff13397f0
commit
0a684facee
3 changed files with 6 additions and 17 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue