Rename SeException class to AppException

This commit is contained in:
Alex Cabal 2023-07-14 09:36:10 -05:00
parent 3a02ab281d
commit 12cf83a843
39 changed files with 45 additions and 45 deletions

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidCaptchaException extends SeException{
class InvalidCaptchaException extends AppException{
protected $message = 'We couldnt validate your CAPTCHA response.';
}

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidCredentialsException extends SeException{
class InvalidCredentialsException extends AppException{
protected $message = 'Invalid credentials.';
}

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidEmailException extends SeException{
class InvalidEmailException extends AppException{
protected $message = 'We couldnt understand your email address.';
}

View file

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

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidPatronException extends SeException{
class InvalidPatronException extends AppException{
protected $message = 'We couldnt locate you in the Patrons Circle.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidPermissionsException extends SeException{
class InvalidPermissionsException extends AppException{
protected $message = 'You dont have permission to perform that action.';
}

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidRequestException extends SeException{
class InvalidRequestException extends AppException{
protected $message = 'Invalid request.';
}

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class InvalidUserException extends SeException{
class InvalidUserException extends AppException{
protected $message = 'We couldnt locate you in our system.';
}

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class NewsletterRequiredException extends SeException{
class NewsletterRequiredException extends AppException{
protected $message = 'You must select at least one newsletter to subscribe to.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class NewsletterSubscriptionExistsException extends SeException{
class NewsletterSubscriptionExistsException extends AppException{
protected $message = 'Youre already subscribed to the newsletter.';
}

View file

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

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class PaymentExistsException extends SeException{
class PaymentExistsException extends AppException{
protected $message = 'This transaction ID already exists.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class PollClosedException extends SeException{
class PollClosedException extends AppException{
protected $message = 'This poll is not open to voting right now.';
}

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class PollItemRequiredException extends SeException{
class PollItemRequiredException extends AppException{
protected $message = 'You must select an item to vote on.';
}

View file

@ -1,7 +1,7 @@
<?
namespace Exceptions;
class PollVoteExistsException extends SeException{
class PollVoteExistsException extends AppException{
public $Vote = null;
protected $message = 'Youve already voted in this poll.';

View file

@ -1,5 +0,0 @@
<?
namespace Exceptions;
class SeException extends \Exception{
}

View file

@ -1,7 +1,7 @@
<?
namespace Exceptions;
class SeeOtherEbookException extends SeException{
class SeeOtherEbookException extends AppException{
public $Url;
public function __construct(string $url = ''){

View file

@ -1,6 +1,6 @@
<?
namespace Exceptions;
class UserExistsException extends SeException{
class UserExistsException extends AppException{
protected $message = 'This email already exists in the database.';
}

View file

@ -1,7 +1,7 @@
<?
namespace Exceptions;
class ValidationException extends SeException{
class ValidationException extends AppException{
public $Exceptions = [];
public $HasExceptions = false;
public $IsFatal = false;

View file

@ -1,7 +1,7 @@
<?
namespace Exceptions;
class WebhookException extends SeException{
class WebhookException extends AppException{
public $PostData;
public function __construct(string $message = '', string $data = null){