summaryrefslogtreecommitdiff
path: root/src/TgException.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2023-12-02 12:30:31 +0300
committerGitHub <noreply@github.com>2023-12-02 12:30:31 +0300
commitf1c2dbad1c9674f82e61b7cf76cdc618a2dba852 (patch)
tree66f31434af61a5b4dda9a3591d67fc528273b505 /src/TgException.cpp
parent782596206764e663b9b45401b447871f21ce62b2 (diff)
parent658f37f93d1a0c31c447adb3022cfd6cee4a1876 (diff)
Merge pull request #289 from Temomik/master
Added ability to handle error codes from all Api requests
Diffstat (limited to 'src/TgException.cpp')
-rw-r--r--src/TgException.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TgException.cpp b/src/TgException.cpp
index e61e09c..7164ddc 100644
--- a/src/TgException.cpp
+++ b/src/TgException.cpp
@@ -4,7 +4,9 @@
namespace TgBot {
-TgBot::TgException::TgException(const std::string& description) : runtime_error(description) {
+TgException::TgException(const std::string& description, ErrorCode errorCode)
+ : runtime_error(description), errorCode(errorCode)
+{
}
}