status-desktop/src-cpp/backend/types.cpp

19 lines
446 B
C++

#include "backend/types.h"
#include <QString>
std::ostream& operator<<(std::ostream& os, const Backend::RpcError& r)
{
return (os << "RpcError(\n code: " << r.m_code << "\n message: " << r.m_message.toStdString() << "\n)"
<< std::endl);
}
Backend::RpcException::RpcException(const std::string& message)
: m_message(message)
{ }
const char* Backend::RpcException::what() const noexcept
{
return m_message.c_str();
}