![]() |
tempoch-cpp
Header-only C++ wrapper for tempoch
|
Error handling for the tempoch C++ wrapper. More...
#include <stdexcept>#include <string>#include "tempoch_ffi.h"

Go to the source code of this file.
Classes | |
| class | tempoch::TempochException |
| Base exception for all tempoch errors. More... | |
| class | tempoch::NullPointerError |
| A required output pointer was null. More... | |
| class | tempoch::UtcConversionError |
| UTC conversion failed (date out of range or invalid). More... | |
| class | tempoch::InvalidPeriodError |
| The period is invalid (start > end). More... | |
| class | tempoch::NoIntersectionError |
| The two periods do not intersect. More... | |
Namespaces | |
| namespace | tempoch |
Functions | |
| void | tempoch::check_status (tempoch_status_t status, const char *operation) |
| Check a tempoch_status_t and throw the appropriate exception on error. | |
Error handling for the tempoch C++ wrapper.
Maps C-style status codes from tempoch-ffi to a typed C++ exception hierarchy, and provides a check_status helper.
Definition in file ffi_core.hpp.