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

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