mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 12:26:39 -04:00
Rename exception for consistency
This commit is contained in:
parent
94d62fdcdf
commit
c36d1ac3d3
4 changed files with 10 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue