3#include <test/jtx/Env.h>
51 jt.
rpcException = {errorInfo.token.cStr(), std::nullopt};
A transaction testing environment.
std::optional< ErrorCodeI > code_
std::optional< std::string > errorMessage_
std::optional< std::string > errorException_
Rpc(std::string error, std::optional< std::string > exceptionMessage={})
If there is not a code, we expect an exception message.
std::optional< std::string > error_
Rpc(ErrorCodeI code, std::optional< std::string > m={})
If there's an error code, we expect an error message.
void operator()(Env &, JTx &jt) const
ErrorInfo const & getErrorInfo(ErrorCodeI code)
Returns an ErrorInfo that reflects the error code.
Execution context for applying a JSON transaction.
std::optional< std::pair< ErrorCodeI, std::string > > rpcCode
std::optional< std::pair< std::string, std::optional< std::string > > > rpcException