mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com> Co-authored-by: Alex Cabal <alex@standardebooks.org>
This commit is contained in:
parent
74f747df76
commit
6a5c05511a
92 changed files with 3174 additions and 146 deletions
6
lib/Exceptions/ArtistNameRequiredException.php
Normal file
6
lib/Exceptions/ArtistNameRequiredException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ArtistNameRequiredException extends AppException{
|
||||
protected $message = 'An artist name is required.';
|
||||
}
|
6
lib/Exceptions/ArtworkAlreadyExistsException.php
Normal file
6
lib/Exceptions/ArtworkAlreadyExistsException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ArtworkAlreadyExistsException extends AppException{
|
||||
protected $message = 'An artwork with this name already exists.';
|
||||
}
|
6
lib/Exceptions/ArtworkNameRequiredException.php
Normal file
6
lib/Exceptions/ArtworkNameRequiredException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ArtworkNameRequiredException extends AppException{
|
||||
protected $message = 'An artwork name is required.';
|
||||
}
|
6
lib/Exceptions/ArtworkNotFoundException.php
Normal file
6
lib/Exceptions/ArtworkNotFoundException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ArtworkNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that artwork.';
|
||||
}
|
6
lib/Exceptions/InvalidArtistException.php
Normal file
6
lib/Exceptions/InvalidArtistException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidArtistException extends AppException{
|
||||
protected $message = 'We couldn’t locate that artist.';
|
||||
}
|
6
lib/Exceptions/InvalidArtworkException.php
Normal file
6
lib/Exceptions/InvalidArtworkException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidArtworkException extends AppException{
|
||||
protected $message = 'Artwork is invalid.';
|
||||
}
|
6
lib/Exceptions/InvalidArtworkPageUrlException.php
Normal file
6
lib/Exceptions/InvalidArtworkPageUrlException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidArtworkPageUrlException extends AppException{
|
||||
protected $message = 'Invalid link to page with artwork.';
|
||||
}
|
5
lib/Exceptions/InvalidArtworkTagException.php
Normal file
5
lib/Exceptions/InvalidArtworkTagException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidArtworkTagException extends AppException{
|
||||
}
|
6
lib/Exceptions/InvalidCompletedYearException.php
Normal file
6
lib/Exceptions/InvalidCompletedYearException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidCompletedYearException extends AppException{
|
||||
protected $message = 'Invalid year of completion.';
|
||||
}
|
6
lib/Exceptions/InvalidCopyrightPageUrlException.php
Normal file
6
lib/Exceptions/InvalidCopyrightPageUrlException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidCopyrightPageUrlException extends AppException{
|
||||
protected $message = 'Invalid link to page with copyright details.';
|
||||
}
|
6
lib/Exceptions/InvalidDeathYearException.php
Normal file
6
lib/Exceptions/InvalidDeathYearException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidDeathYearException extends AppException{
|
||||
protected $message = 'Invalid year of death.';
|
||||
}
|
7
lib/Exceptions/InvalidImageUploadException.php
Normal file
7
lib/Exceptions/InvalidImageUploadException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidImageUploadException extends AppException{
|
||||
protected $message = 'Uploaded image is invalid.';
|
||||
}
|
7
lib/Exceptions/InvalidMimeTypeException.php
Normal file
7
lib/Exceptions/InvalidMimeTypeException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidMimeTypeException extends AppException{
|
||||
protected $message = 'Uploaded image must be a JPG, BMP, PNG, or TIFF file.';
|
||||
}
|
6
lib/Exceptions/InvalidMuseumUrlException.php
Normal file
6
lib/Exceptions/InvalidMuseumUrlException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidMuseumUrlException extends AppException{
|
||||
protected $message = 'Invalid link to an approved museum page.';
|
||||
}
|
6
lib/Exceptions/InvalidPublicationYearException.php
Normal file
6
lib/Exceptions/InvalidPublicationYearException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPublicationYearException extends AppException{
|
||||
protected $message = 'Invalid year of publication.';
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPublicationYearPageUrlException extends AppException{
|
||||
protected $message = 'Invalid link to page with year of publication.';
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class InvalidRequestException extends AppException{
|
||||
protected $message = 'Invalid request.';
|
||||
protected $message = 'Invalid HTTP request.';
|
||||
}
|
||||
|
|
6
lib/Exceptions/MissingEbookException.php
Normal file
6
lib/Exceptions/MissingEbookException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class MissingEbookException extends AppException{
|
||||
protected $message = 'Artwork marked as “in use”, but the ebook couldn’t be found in the filesystem.';
|
||||
}
|
6
lib/Exceptions/MissingPdProofException.php
Normal file
6
lib/Exceptions/MissingPdProofException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class MissingPdProofException extends AppException{
|
||||
protected $message = 'Missing proof of U.S. public domain status.';
|
||||
}
|
11
lib/Exceptions/StringTooLongException.php
Normal file
11
lib/Exceptions/StringTooLongException.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class StringTooLongException extends AppException{
|
||||
public $Source;
|
||||
|
||||
public function __construct(string $source = ''){
|
||||
$this->Source = $source;
|
||||
parent::__construct('String too long: ' . $source);
|
||||
}
|
||||
}
|
6
lib/Exceptions/TagsRequiredException.php
Normal file
6
lib/Exceptions/TagsRequiredException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class TagsRequiredException extends AppException{
|
||||
protected $message = 'At least one tag is required.';
|
||||
}
|
6
lib/Exceptions/TooManyTagsException.php
Normal file
6
lib/Exceptions/TooManyTagsException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class TooManyTagsException extends AppException{
|
||||
protected $message = 'Too many tags; the maximum is ' . COVER_ARTWORK_MAX_TAGS . '.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue