1#include <xrpl/basics/contract.h>
3#include <gtest/gtest.h>
9TEST(contract, contract)
17 EXPECT_STREQ(e1.
what(),
"Throw test");
25 EXPECT_STREQ(e2.
what(),
"Throw test");
29 FAIL() <<
"std::runtime_error should have been re-caught";
34 FAIL() <<
"std::runtime_error should have been caught the first time";
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
XRPL_NO_SANITIZE_ADDRESS void rethrow()
Rethrow the exception currently being handled.
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)