Add ThemeNotFoundException

This commit is contained in:
Li Chen 2013-11-28 22:25:54 +01:00
commit 7bd2e3eecf
2 changed files with 50 additions and 30 deletions

View file

@ -20,6 +20,11 @@ class Theme
$this->id = $res['id'];
$this->name = $res['name'];
}
else
{
$db->deconnexion();
throw new ThemeNotFoundException();
}
$db->deconnexion();
}
}
@ -137,3 +142,8 @@ class Theme
return $array;
}
}
class ThemeNotFoundException extends Exception
{
}