git / moonbite-core / src/libmw/include/mw/exceptions/CryptoException.h · raw

#pragma once#include <mw/exceptions/LTCException.h>#include <mw/util/StringUtil.h>#define ThrowCrypto(msg) throw CryptoException(msg, __FUNCTION__)#define ThrowCrypto_F(msg, ...) throw CryptoException(StringUtil::Format(msg, __VA_ARGS__), __FUNCTION__)class CryptoException : public LTCException{public:    CryptoException(const std::string& message, const std::string& function)        : LTCException("CryptoException", message, function)    {    }};