Type tweaks for exceptions and some validation

This commit is contained in:
Alex Cabal 2024-04-25 20:14:34 -05:00
parent 5b3f8f7b77
commit 7eaa400ae3
13 changed files with 49 additions and 37 deletions

View file

@ -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());