-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw better DuplicateOuuidException
- newDocument is called on api update - createData is called from ui
- Loading branch information
1 parent
bf6511d
commit 821f972
Showing
2 changed files
with
17 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace EMS\CoreBundle\Exception; | ||
|
||
class DuplicateOuuidException extends ElasticmsException | ||
{ | ||
public function __construct(string $ouuid, string $contentTypeName) | ||
{ | ||
parent::__construct( | ||
message: \sprintf('Duplicate ouuid "%s" for content type "%s"', $ouuid, $contentTypeName) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters