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
error_tags.h
1 /*********************************************************************************************************************************************/
2 /* DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. */
3 /* Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, */
4 /* document analysis. Offline processing possible for security and confidentiality */
5 /* */
6 /* Copyright (c) SILVERCODERS Ltd, http://silvercoders.com */
7 /* Project homepage: https://github.com/docwire/docwire */
8 /* */
9 /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-DocWire-Commercial */
10 /*********************************************************************************************************************************************/
11 
12 #ifndef DOCWIRE_ERROR_TAGS_H
13 #define DOCWIRE_ERROR_TAGS_H
14 
15 #include "core_export.h"
16 #include <string_view>
17 
18 namespace docwire::errors
19 {
20 
39 struct DOCWIRE_CORE_EXPORT program_logic
40 {
41  static constexpr std::string_view string() { return "program logic error tag"; }
42 };
43 
63 struct DOCWIRE_CORE_EXPORT program_corrupted
64 {
65  static constexpr std::string_view string() { return "program corrupted error tag"; }
66 };
67 
87 struct DOCWIRE_CORE_EXPORT uninterpretable_data
88 {
89  static constexpr std::string_view string() { return "uninterpretable data error tag"; }
90 };
91 
111 struct DOCWIRE_CORE_EXPORT network_failure
112 {
113  static constexpr std::string_view string() { return "network failure error tag"; }
114 };
115 
133 struct DOCWIRE_CORE_EXPORT file_encrypted
134 {
135  static constexpr std::string_view string() { return "file encrypted error tag"; }
136 };
137 
138 } // namespace docwire::errors
139 
140 #endif
Provides features for reporting and handling errors with context data using nested exceptions.
Definition: contains_type.h:19
File is encrypted error tag.
Definition: error_tags.h:134
Network failure error tag.
Definition: error_tags.h:112
Program corrupted error tag.
Definition: error_tags.h:64
Program logic failure error tag.
Definition: error_tags.h:40
Uninterpretable data error tag.
Definition: error_tags.h:88