#include "ccf/ds/nonstd.h"
#include "consensus/ledger_enclave_types.h"
#include "host/time_bound_logger.h"
#include "snapshots/filenames.h"
#include <charconv>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <optional>
Go to the source code of this file.
◆ THROW_ON_ERROR
#define THROW_ON_ERROR |
( |
|
x, |
|
|
|
name |
|
) |
| |
Value: do \
{ \
auto rc = x; \
if (rc == -1) \
{ \
throw std::runtime_error(fmt::format( \
"Error ({}) writing snapshot {} in " #x, strerror(errno), name)); \
} \
} while (0)