DocWire SDK
DocWire SDK: Deterministic, auditable, and secure data processing in C++20. On-premise by default. No compromises on computational speed.
Loading...
Searching...
No Matches
docwire::errors::file_encrypted Struct Reference

File is encrypted error tag. More...

#include <error_tags.h>

Static Public Member Functions

static constexpr std::string_view string ()

Detailed Description

File is encrypted error tag.

This tag is used to add the information that the SDK encountered a file that is encrypted and cannot be accessed or processed without decryption.

throw make_error(errors::file_encrypted{});
File is encrypted error tag.
Definition error_tags.h:134

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

catch (const errors::base& e) {
std::cerr << "File encrypted error" << std::endl;
}
bool contains_type(const std::exception &e)
Checks if the given nested exceptions chain contains a specific type of context.
Base class for all exceptions in the SDK.
Definition error.h:76

Definition at line 133 of file error_tags.h.

Member Function Documentation

◆ string()

constexpr std::string_view docwire::errors::file_encrypted::string ( )
inlinestaticconstexpr

Definition at line 135 of file error_tags.h.


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