mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -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
|
@ -36,7 +36,7 @@ class PollItem extends PropertiesBase{
|
|||
|
||||
public static function Get(?int $pollItemId): PollItem{
|
||||
if($pollItemId === null ){
|
||||
throw new Exceptions\InvalidPollItemException();
|
||||
throw new Exceptions\PollItemNotFoundException();
|
||||
}
|
||||
|
||||
$result = Db::Query('
|
||||
|
@ -46,7 +46,7 @@ class PollItem extends PropertiesBase{
|
|||
', [$pollItemId], 'PollItem');
|
||||
|
||||
if(sizeof($result) == 0){
|
||||
throw new Exceptions\InvalidPollItemException();
|
||||
throw new Exceptions\PollItemNotFoundException();
|
||||
}
|
||||
|
||||
return $result[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue