mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Rename exception for consistency
This commit is contained in:
parent
94d62fdcdf
commit
c36d1ac3d3
4 changed files with 10 additions and 10 deletions
|
@ -35,7 +35,7 @@ try{
|
|||
$project->Ebook->Create();
|
||||
$project->EbookId = $project->Ebook->EbookId;
|
||||
}
|
||||
catch(Exceptions\DuplicateEbookException $ex){
|
||||
catch(Exceptions\EbookExistsException $ex){
|
||||
// If the `Ebook` already exists, create the `Project` anyway.
|
||||
$project->Ebook = Ebook::GetByIdentifier($project->Ebook->Identifier);
|
||||
if($project->Ebook->EbookPlaceholder !== null && !$project->Ebook->EbookPlaceholder->IsInProgress){
|
||||
|
@ -90,7 +90,7 @@ catch(Exceptions\LoginRequiredException){
|
|||
catch(Exceptions\InvalidPermissionsException){
|
||||
Template::ExitWithCode(Enums\HttpCode::Forbidden);
|
||||
}
|
||||
catch(Exceptions\InvalidProjectException | Exceptions\InvalidEbookException | Exceptions\ProjectExistsException | Exceptions\DuplicateEbookException | Exceptions\EbookIsNotAPlaceholderException $ex){
|
||||
catch(Exceptions\InvalidProjectException | Exceptions\InvalidEbookException | Exceptions\ProjectExistsException | Exceptions\EbookExistsException | Exceptions\EbookIsNotAPlaceholderException $ex){
|
||||
$_SESSION['project'] = $project;
|
||||
$_SESSION['exception'] = $ex;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue