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:
parent
e5f7f60e8b
commit
131903c607
6 changed files with 11 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue