mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Add placeholders for ebooks
This commit is contained in:
parent
cf5f488cae
commit
1ab95df084
52 changed files with 1192 additions and 237 deletions
10
lib/Exceptions/DuplicateEbookException.php
Normal file
10
lib/Exceptions/DuplicateEbookException.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class DuplicateEbookException extends AppException{
|
||||
public function __construct(string $identifier){
|
||||
$this->message = 'Ebook already exists with identifier: ' . $identifier;
|
||||
|
||||
parent::__construct($this->message);
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookCreatedDatetimeRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'EbookCreated datetime required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookDescriptionRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook Description required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookLanguageRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook language required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookLongDescriptionRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook LongDescription required.';
|
||||
}
|
7
lib/Exceptions/EbookMissingPlaceholderException.php
Normal file
7
lib/Exceptions/EbookMissingPlaceholderException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookMissingPlaceholderException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook is a placeholder, but has no placeholder object.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookReadingEaseRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook ReadingEase required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookRepoFilesystemPathRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook RepoFilesystemPath required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookTextSinglePageByteCountRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook TextSinglePageByteCount required.';
|
||||
}
|
7
lib/Exceptions/EbookUnexpectedPlaceholderException.php
Normal file
7
lib/Exceptions/EbookUnexpectedPlaceholderException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookUnexpectedPlaceholderException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook is not a placeholder, but has a placeholder object.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookUpdatedDatetimeRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'EbookUpdated datetime required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookWordCountRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook WordCount required.';
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookWwwFilesystemPathRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook WwwFilesystemPath required.';
|
||||
}
|
5
lib/Exceptions/InvalidEbookIdentifierException.php
Normal file
5
lib/Exceptions/InvalidEbookIdentifierException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookIdentifierException extends AppException{
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookPlaceholderYearPublishedException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Invalid ebook placeholder year published.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue