mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Rename SeException class to AppException
This commit is contained in:
parent
3a02ab281d
commit
12cf83a843
39 changed files with 45 additions and 45 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ try{
|
|||
session_unset();
|
||||
}
|
||||
}
|
||||
catch(Exceptions\SeException){
|
||||
catch(Exceptions\AppException){
|
||||
Template::Emit404();
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ $poll = new Poll();
|
|||
try{
|
||||
$poll = Poll::GetByUrlName(HttpInput::Str(GET, 'pollurlname', false));
|
||||
}
|
||||
catch(Exceptions\SeException){
|
||||
catch(Exceptions\AppException){
|
||||
Template::Emit404();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue