mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Add beginning of a project management system to placeholders
This commit is contained in:
parent
e56de4b19d
commit
adfe07aad9
42 changed files with 717 additions and 118 deletions
7
lib/Exceptions/EbookIsNotAPlaceholderException.php
Normal file
7
lib/Exceptions/EbookIsNotAPlaceholderException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookIsNotAPlaceholderException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'This project’s ebook is already released, and not a placeholder.';
|
||||
}
|
7
lib/Exceptions/EbookRequiredException.php
Normal file
7
lib/Exceptions/EbookRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook required.';
|
||||
}
|
7
lib/Exceptions/InvalidCollectionException.php
Normal file
7
lib/Exceptions/InvalidCollectionException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidCollectionException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Collection is invalid.';
|
||||
}
|
7
lib/Exceptions/InvalidContributorException.php
Normal file
7
lib/Exceptions/InvalidContributorException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidContributorException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Contributor is invalid.';
|
||||
}
|
5
lib/Exceptions/InvalidEbookException.php
Normal file
5
lib/Exceptions/InvalidEbookException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookException extends ValidationException{
|
||||
}
|
7
lib/Exceptions/InvalidEbookPlaceholderException.php
Normal file
7
lib/Exceptions/InvalidEbookPlaceholderException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookPlaceholderException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook placeholder is invalid.';
|
||||
}
|
7
lib/Exceptions/InvalidEbookTagException.php
Normal file
7
lib/Exceptions/InvalidEbookTagException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookTagException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Ebook tag is invalid.';
|
||||
}
|
|
@ -1,5 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidGitCommitException extends AppException{
|
||||
class InvalidGitCommitException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Git commit is invalid.';
|
||||
}
|
||||
|
|
7
lib/Exceptions/InvalidLocSubjectException.php
Normal file
7
lib/Exceptions/InvalidLocSubjectException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidLocSubjectException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'LoC Subject is invalid.';
|
||||
}
|
5
lib/Exceptions/InvalidProjectException.php
Normal file
5
lib/Exceptions/InvalidProjectException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidProjectException extends ValidationException{
|
||||
}
|
7
lib/Exceptions/InvalidSourceException.php
Normal file
7
lib/Exceptions/InvalidSourceException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidSourceException extends ValidationException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Source is invalid.';
|
||||
}
|
7
lib/Exceptions/InvalidVcsUrlException.php
Normal file
7
lib/Exceptions/InvalidVcsUrlException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidVcsUrlException extends InvalidUrlException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Invalid VCS URL.';
|
||||
}
|
7
lib/Exceptions/ManagerRequiredException.php
Normal file
7
lib/Exceptions/ManagerRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ManagerRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Manager is required.';
|
||||
}
|
7
lib/Exceptions/ProducerNameRequiredException.php
Normal file
7
lib/Exceptions/ProducerNameRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ProducerNameRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Producer name is required.';
|
||||
}
|
7
lib/Exceptions/ProjectExistsException.php
Normal file
7
lib/Exceptions/ProjectExistsException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ProjectExistsException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'An active project already exists for this ebook.';
|
||||
}
|
7
lib/Exceptions/ReviewerRequiredException.php
Normal file
7
lib/Exceptions/ReviewerRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ReviewerRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Reviewer is required.';
|
||||
}
|
7
lib/Exceptions/StartedTimestampRequiredException.php
Normal file
7
lib/Exceptions/StartedTimestampRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class StartedTimestampRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Started timestamp is required.';
|
||||
}
|
7
lib/Exceptions/VcsUrlRequiredException.php
Normal file
7
lib/Exceptions/VcsUrlRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class VcsUrlRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'VCS URL is required.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue