10#ifndef BITEXCEPTION_HPP
11#define BITEXCEPTION_HPP
14#include <system_error>
16#include "bitdefines.hpp"
17#include "bittypes.hpp"
18#include "bitwindows.hpp"
27auto last_error_code() noexcept -> std::error_code;
35 using native_code_type = HRESULT;
37 using native_code_type = int;
79 BIT7Z_NODISCARD
auto nativeCode() const noexcept -> native_code_type;
84 BIT7Z_NODISCARD auto hresultCode() const noexcept -> HRESULT;
89 BIT7Z_NODISCARD auto posixCode() const noexcept ->
int;
95 BIT7Z_NODISCARD auto failedFiles() const noexcept -> const
FailedFiles&;
The BitException class represents a generic exception thrown from the bit7z classes.
Definition bitexception.hpp:32
BitException(const std::string &message, std::error_code code)
Constructs a BitException object with the given message.
auto nativeCode() const noexcept -> native_code_type
BitException(const char *message, std::error_code code, FailedFiles &&files={})
Constructs a BitException object with the given message, and the specific files that failed.
BitException(const char *message, std::error_code code, const tstring &file)
Constructs a BitException object with the given message, and the specific file that failed.
BitException(const char *message, std::error_code code, tstring &&file)
Constructs a BitException object with the given message, and the specific file that failed.
The main namespace of the bit7z library.
Definition bit7zlibrary.hpp:30