mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
28 lines
529 B
C++
28 lines
529 B
C++
#include <xrpl/protocol/RPCErr.h>
|
|
|
|
#include <xrpl/json/json_value.h>
|
|
#include <xrpl/protocol/ErrorCodes.h>
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace xrpl {
|
|
|
|
struct RPCErr;
|
|
|
|
// VFALCO NOTE Deprecated function
|
|
json::Value
|
|
rpcError(ErrorCodeI iError)
|
|
{
|
|
json::Value jvResult(json::ValueType::Object);
|
|
RPC::injectError(iError, jvResult);
|
|
return jvResult;
|
|
}
|
|
|
|
// VFALCO NOTE Deprecated function
|
|
bool
|
|
isRpcError(json::Value jvResult)
|
|
{
|
|
return jvResult.isObject() && jvResult.isMember(jss::error);
|
|
}
|
|
|
|
} // namespace xrpl
|