onex namespace
Fundamental type definitions and error handling for the onex library.
Classes
-
template<typename T>struct Result
Enums
- enum class Error { kNone, kInvalidHeader, kInvalidFormat, kCorruptArchive, kEntryNotFound, kAmbiguousMatch, kDecompressFailed, kCompressFailed, kFileNotFound, kReadError, kIoError, kNetworkError }
- Error codes returned by most library operations.
Typedefs
- using byte = std::uint8_t
- Raw byte type used throughout the library.
Enum documentation
enum class onex:: Error
Error codes returned by most library operations.
| Enumerators | |
|---|---|
| kNone |
No error; the operation succeeded. |
| kInvalidHeader |
The archive header is missing or malformed. |
| kInvalidFormat |
The archive format is not recognised. |
| kCorruptArchive |
The archive data is corrupt or truncated. |
| kEntryNotFound |
A requested entry was not found in the archive. |
| kAmbiguousMatch |
More than one entry matched the lookup criteria. |
| kDecompressFailed |
Decompression of entry data failed. |
| kCompressFailed |
Compression of entry data failed. |
| kFileNotFound |
The specified file does not exist. |
| kReadError |
An I/O read operation failed. |
| kIoError |
A general I/O error occurred. |
| kNetworkError |
A network request failed. |