8#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
9#error "OpenPine C++ wrapper headers require C++17 (std::optional)."
27 std::string error_message_;
28 std::optional<Span> span_;
32 : error_message_(error_message),
33 span_(
span ? std::make_optional(*
span) : std::nullopt) {}
45 const std::optional<Span>&
span()
const {
return span_; }
const std::string & errorMessage() const
Gets the error message.
const std::optional< Span > & span() const
Gets the error span if available.
Error(const char *error_message, const Span *span)
Re-exports FFI types into the openpine namespace.