-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* UML-3750 added exception for null DOB * UML-3750 updated tests, added explicity exception * UML-3750 moved try catch block to cover match logic * UML-3750 added logger
- Loading branch information
1 parent
10c58c4
commit 6b2ef66
Showing
4 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
service-api/app/src/App/src/Exception/ActorDateOfBirthNotSetException.php
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Exception; | ||
|
||
use Fig\Http\Message\StatusCodeInterface; | ||
use Throwable; | ||
|
||
class ActorDateOfBirthNotSetException extends AbstractApiException | ||
{ | ||
public const MESSAGE = 'Actor date of birth is not set'; | ||
public const TITLE = 'DOB Not Found'; | ||
public const CODE = StatusCodeInterface::STATUS_NOT_FOUND; | ||
|
||
public function __construct(?string $message = null, array $additionalData = [], ?Throwable $previous = null) | ||
{ | ||
parent::__construct(self::TITLE, $message, self::CODE, $additionalData, $previous); | ||
} | ||
} |
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
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
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