33 #ifndef _IDENTT_UTILS_BASEUTILS_HPP_ 34 #define _IDENTT_UTILS_BASEUTILS_HPP_ 36 #include <glog/logging.h> 42 #define IDENTT_SERVICE_SCOPE_HTTP 0x0001 43 #define IDENTT_SERVICE_SCOPE_HTTPS 0x0002 45 #define THREEPID_DEFAULT_ALGO "ed25519" 46 #define THREEPID_DEFAULT_ALGO_ID "0" 47 #define THREEPID_DEFAULT_ALGO_WITH_ID THREEPID_DEFAULT_ALGO ":" THREEPID_DEFAULT_ALGO_ID 48 #define THREEPID_SESSION_VALID_LIFETIME_MS 3 * 24 * 60 * 60 * 1000 50 #define BULK_LOOKUP_CHUNK_SIZE 100 58 explicit JdException(
const char* msg) : msg_(msg), err_(0) {}
59 explicit JdException(std::string& msg) : msg_(msg), err_(0) {}
60 explicit JdException(std::string msg) : msg_(msg), err_(0) {}
61 explicit JdException(
const char* msg,
int err) : msg_(msg),err_(err) {}
62 explicit JdException(std::string& msg,
int err) : msg_(msg),err_(err) {}
63 explicit JdException(std::string msg,
int err) : msg_(msg),err_(err) {}
65 virtual const char* what()
const throw ()
69 virtual int ecode()
const throw ()
78 using JdException::JdException;
81 using JdException::JdException;
84 using JdException::JdException;
87 using JdException::JdException;
90 using JdException::JdException;
93 using JdException::JdException;
96 using JdException::JdException;
101 #endif // _IDENTT_UTILS_BASEUTILS_HPP_ Definition: BaseUtils.hpp:92
Definition: BaseUtils.hpp:77
Definition: BaseUtils.hpp:80
Definition: BaseUtils.hpp:83
Definition: BaseUtils.hpp:86
Definition: BaseUtils.hpp:52
Definition: CryptoBase.hpp:49
Definition: BaseUtils.hpp:89
Definition: BaseUtils.hpp:95