DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::errors::program_logic Struct Reference

Program logic failure error tag. More...

#include <error_tags.h>

Static Public Member Functions

static constexpr std::string_view string ()
 

Detailed Description

Program logic failure error tag.

This tag is used to add the information that an error occurred due to a logical inconsistency or invalid assumption within the SDK itself. This is probably a mistake of an Application developer or SDK developer. Should be verified and, if it looks like an error inside the SDK, reported as an issue.

throw make_error(errors::program_logic{});

Existence of this tag can be checked using errors::contains_type<errors::program_logic> function.

catch (const errors::base& e) {
if (errors::contains_type<errors::program_logic>(e))
std::cerr << "Program logic error" << std::endl;
}

Definition at line 39 of file error_tags.h.


The documentation for this struct was generated from the following file: