20 #include <ripple/rpc/Status.h>
43 return s1 +
": " + s2;
50 sStr << info.token.c_str() <<
": " << info.message.c_str();
64 auto& error = value[jss::error];
65 error[jss::code] =
code_;
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
std::string codeString() const
Strings const & messages() const
error_code_i toErrorCode() const
Returns the Status as an error_code_i.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool transResultInfo(TER code, std::string &token, std::string &text)
TER toTER() const
Returns the Status as a TER.
std::string message() const
Return the first message, if any.
void fillJson(Json::Value &)
Fill a Json::Value with an RPC 2.0 response.
std::string toString() const