Rename exception for consistency

This commit is contained in:
Alex Cabal 2025-01-09 14:08:54 -06:00
parent 94d62fdcdf
commit c36d1ac3d3
4 changed files with 10 additions and 10 deletions

View file

@ -34,7 +34,7 @@ try{
try{
$ebook->Create();
}
catch(Exceptions\DuplicateEbookException $ex){
catch(Exceptions\EbookExistsException $ex){
$ebook = Ebook::GetByIdentifier($ebook->Identifier);
// An existing `EbookPlaceholder` already exists.
@ -72,7 +72,7 @@ try{
try{
$ebook->Save();
}
catch(Exceptions\DuplicateEbookException){
catch(Exceptions\EbookExistsException){
throw new Exceptions\EbookPlaceholderExistsException();
}