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

@ -20,13 +20,13 @@ try{
try{
PollVote::Get($poll->UrlName, $GLOBALS['User']->UserId);
}
catch(Exceptions\SeException){
catch(Exceptions\AppException){
// User has already voted
$canVote = true;
}
}
}
catch(Exceptions\SeException){
catch(Exceptions\AppException){
Template::Emit404();
}

View file

@ -17,7 +17,7 @@ try{
session_unset();
}
}
catch(Exceptions\SeException){
catch(Exceptions\AppException){
Template::Emit404();
}

View file

@ -6,7 +6,7 @@ $poll = new Poll();
try{
$poll = Poll::GetByUrlName(HttpInput::Str(GET, 'pollurlname', false));
}
catch(Exceptions\SeException){
catch(Exceptions\AppException){
Template::Emit404();
}

View file

@ -33,7 +33,7 @@ try{
header('Location: ' . $vote->Url);
}
}
catch(Exceptions\SeException $ex){
catch(Exceptions\AppException $ex){
// Validation failed
if($requestType == WEB){
$_SESSION['vote'] = $vote;