mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Remove leading slash from exceptions in lib/Exceptions
This commit is contained in:
parent
5c69923176
commit
dc62553269
3 changed files with 10 additions and 10 deletions
|
@ -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){
|
||||||
|
|
|
@ -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('
|
||||||
|
|
|
@ -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('
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue