Refactor HttpInput::Str and rename some exceptions for consistency

This commit is contained in:
Alex Cabal 2024-01-18 11:15:59 -06:00
parent 2b5f4f55a2
commit ca3fc6dbfd
54 changed files with 163 additions and 159 deletions

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidArtistException extends AppException{
class ArtistNotFoundException extends AppException{
protected $message = 'We couldnt locate that artist.';
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class AuthorNotFoundException extends AppException{
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class CollectionNotFoundException extends AppException{
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class EbookNotFoundException extends AppException{
}

View file

@ -1,5 +0,0 @@
<?
namespace Exceptions;
class InvalidAuthorException extends AppException{
}

View file

@ -1,5 +0,0 @@
<?
namespace Exceptions;
class InvalidCollectionException extends AppException{
}

View file

@ -1,5 +0,0 @@
<?
namespace Exceptions;
class InvalidEbookException extends AppException{
}

View file

@ -1,5 +0,0 @@
<?
namespace Exceptions;
class InvalidSessionException extends AppException{
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidNewsletterSubscriptionException extends AppException{
class NewsletterSubscriptionNotFoundException extends AppException{
protected $message = 'We couldnt find you in our newsletter subscribers list.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidPollItemException extends AppException{
class PollItemNotFoundException extends AppException{
protected $message = 'We couldnt locate that poll item.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidPollException extends AppException{
class PollNotFoundException extends AppException{
protected $message = 'We couldnt locate that poll.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidPollVoteException extends AppException{
class PollVoteNotFoundException extends AppException{
protected $message = 'We couldnt locate that vote.';
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class SessionNotFoundException extends AppException{
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidUserException extends AppException{
class UserNotFoundException extends AppException{
protected $message = 'We couldnt locate that user.';
}