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_corrupted Struct Reference

Program corrupted error tag. More...

#include <error_tags.h>

Static Public Member Functions

static constexpr std::string_view string ()
 

Detailed Description

Program corrupted error tag.

This tag is used to add the information that the SDK has become corrupted or is in an invalid state, preventing it from functioning correctly. For example the important resource file cannot be loaded. The consistency of an installation should be checked and fixed by administrator or Application developer or it should be reported as an SDK issue if the reason is unknown.

throw make_error(errors::program_corrupted{});

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

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

Definition at line 63 of file error_tags.h.


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