mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Refactor HttpInput::Str and rename some exceptions for consistency
This commit is contained in:
parent
2b5f4f55a2
commit
ca3fc6dbfd
54 changed files with 163 additions and 159 deletions
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidArtistException extends AppException{
|
||||
class ArtistNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that artist.';
|
||||
}
|
5
lib/Exceptions/AuthorNotFoundException.php
Normal file
5
lib/Exceptions/AuthorNotFoundException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class AuthorNotFoundException extends AppException{
|
||||
}
|
5
lib/Exceptions/CollectionNotFoundException.php
Normal file
5
lib/Exceptions/CollectionNotFoundException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class CollectionNotFoundException extends AppException{
|
||||
}
|
5
lib/Exceptions/EbookNotFoundException.php
Normal file
5
lib/Exceptions/EbookNotFoundException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookNotFoundException extends AppException{
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidAuthorException extends AppException{
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidCollectionException extends AppException{
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidEbookException extends AppException{
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidSessionException extends AppException{
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidNewsletterSubscriptionException extends AppException{
|
||||
class NewsletterSubscriptionNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t find you in our newsletter subscribers list.';
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPollItemException extends AppException{
|
||||
class PollItemNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that poll item.';
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPollException extends AppException{
|
||||
class PollNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that poll.';
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPollVoteException extends AppException{
|
||||
class PollVoteNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that vote.';
|
||||
}
|
5
lib/Exceptions/SessionNotFoundException.php
Normal file
5
lib/Exceptions/SessionNotFoundException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class SessionNotFoundException extends AppException{
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidUserException extends AppException{
|
||||
class UserNotFoundException extends AppException{
|
||||
protected $message = 'We couldn’t locate that user.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue