Add beginning of a project management system to placeholders

This commit is contained in:
Alex Cabal 2024-12-14 19:03:04 -06:00
parent e56de4b19d
commit adfe07aad9
42 changed files with 717 additions and 118 deletions

View file

@ -14,10 +14,10 @@ class EbookSource{
// *******
/**
* @throws Exceptions\ValidationException
* @throws Exceptions\InvalidSourceException
*/
public function Validate(): void{
$error = new Exceptions\ValidationException();
$error = new Exceptions\InvalidSourceException();
if(!isset($this->EbookId)){
$error->Add(new Exceptions\EbookSourceEbookIdRequiredException());
@ -44,7 +44,7 @@ class EbookSource{
}
/**
* @throws Exceptions\ValidationException
* @throws Exceptions\InvalidSourceException
*/
public function Create(): void{
$this->Validate();