git / moonbite-core / src/libmw/include/mw/exceptions/DeserializationException.h · raw
#pragma once#include <mw/exceptions/LTCException.h>#include <mw/util/StringUtil.h>#define ThrowDeserialization(msg) throw DeserializationException(msg, __FUNCTION__)#define ThrowDeserialization_F(msg, ...) throw DeserializationException(StringUtil::Format(msg, __VA_ARGS__), __FUNCTION__)class DeserializationException : public LTCException{public: DeserializationException(const std::string& message, const std::string& function) : LTCException("DeserializationException", message, function) { }};