mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Type tweaks for exceptions and some validation
This commit is contained in:
parent
5b3f8f7b77
commit
7eaa400ae3
13 changed files with 49 additions and 37 deletions
|
@ -84,7 +84,7 @@ class Artist extends Accessor{
|
|||
$now = new DateTimeImmutable();
|
||||
$thisYear = intval($now->format('Y'));
|
||||
|
||||
$error = new Exceptions\ValidationException();
|
||||
$error = new Exceptions\InvalidArtistException();
|
||||
|
||||
if($this->Name === null || $this->Name == ''){
|
||||
$error->Add(new Exceptions\ArtistNameRequiredException());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue