1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-10-02 15:00:02 +00:00

Rename TawashiException to just Exception.

It's in tawashi namespace already.
This commit is contained in:
King_DuckZ 2017-06-12 23:00:32 +01:00
commit 131903c607
6 changed files with 11 additions and 11 deletions

View file

@ -35,10 +35,10 @@ namespace kamokan {
const char g_language_key[] = "lang";
const char g_duration_key[] = "ttl";
class MissingPostVarError : public tawashi::TawashiException {
class MissingPostVarError : public tawashi::Exception {
public:
explicit MissingPostVarError(const boost::string_view& parKey) :
TawashiException(
tawashi::Exception(
tawashi::ErrorReasons::MissingPostVariable,
"Error retrieving POST variable \"" + std::string(parKey.begin(), parKey.end()) + "\""
)
@ -118,7 +118,7 @@ namespace kamokan {
);
return make_error_redirect(ErrorReasons::UnsupportedContentType);
}
catch (const tawashi::TawashiException& e) {
catch (const tawashi::Exception& e) {
statuslog->error(e.what());
return make_error_redirect(e.reason());
}