Remove leading slash from exceptions in lib/Exceptions

This commit is contained in:
Mike Colagrosso 2024-05-23 22:16:53 -06:00 committed by Alex Cabal
parent 5c69923176
commit dc62553269
3 changed files with 10 additions and 10 deletions

View file

@ -581,7 +581,7 @@ class Ebook{
// ******* // *******
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function Validate(): void{ public function Validate(): void{
/** @throws void */ /** @throws void */
@ -759,7 +759,7 @@ class Ebook{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
private function InsertTagStrings(): void{ private function InsertTagStrings(): void{
$tags = []; $tags = [];
@ -770,7 +770,7 @@ class Ebook{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
private function InsertLocSubjectStrings(): void{ private function InsertLocSubjectStrings(): void{
$subjects = []; $subjects = [];
@ -1083,7 +1083,7 @@ class Ebook{
// *********** // ***********
/** /**
* @throws \Exceptions\EbookNotFoundException * @throws Exceptions\EbookNotFoundException
*/ */
public static function GetByIdentifier(?string $identifier): Ebook{ public static function GetByIdentifier(?string $identifier): Ebook{
if($identifier === null){ if($identifier === null){

View file

@ -24,7 +24,7 @@ class EbookTag extends Tag{
// ******* // *******
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function Validate(): void{ public function Validate(): void{
$error = new Exceptions\ValidationException(); $error = new Exceptions\ValidationException();
@ -39,7 +39,7 @@ class EbookTag extends Tag{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function Create(): void{ public function Create(): void{
$this->Validate(); $this->Validate();
@ -52,7 +52,7 @@ class EbookTag extends Tag{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function GetByNameOrCreate(string $name): EbookTag{ public function GetByNameOrCreate(string $name): EbookTag{
$result = Db::Query(' $result = Db::Query('

View file

@ -3,7 +3,7 @@ class LocSubject extends Tag{
public int $LocSubjectId; public int $LocSubjectId;
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function Validate(): void{ public function Validate(): void{
$error = new Exceptions\ValidationException(); $error = new Exceptions\ValidationException();
@ -18,7 +18,7 @@ class LocSubject extends Tag{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function Create(): void{ public function Create(): void{
$this->Validate(); $this->Validate();
@ -31,7 +31,7 @@ class LocSubject extends Tag{
} }
/** /**
* @throws \Exceptions\ValidationException * @throws Exceptions\ValidationException
*/ */
public function GetByNameOrCreate(string $name): LocSubject{ public function GetByNameOrCreate(string $name): LocSubject{
$result = Db::Query(' $result = Db::Query('