summaryrefslogtreecommitdiff
path: root/src/TgException.cpp
diff options
context:
space:
mode:
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)
+{
}
}