-
-
Notifications
You must be signed in to change notification settings - Fork 120
BitException
The BitException class represents a generic exception thrown from the bit7z classes.
#include <bit7z/bitexception.hpp>
inherits from system_error.
Return type | Name |
---|---|
BitException( const char* message, std::error_code code, const tstring& file ) | |
BitException( const char* message, std::error_code code, FailedFiles&& files = {} ) | |
BitException( const char* message, std::error_code code, tstring&& file ) | |
BitException( const std::string& message, std::error_code code ) | |
const FailedFiles & | failedFiles() const noexcept |
HRESULT | hresultCode() const noexcept |
native_code_type | nativeCode() const noexcept |
int | posixCode() const noexcept |
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.
Parameters:
- message: the message associated with the exception object.
- code: the HRESULT code associated with the exception object.
- file: the file that failed during the operation.
BitException( const char* message, std::error_code code, FailedFiles&& files = {} )
Constructs a BitException object with the given message, and the specific files that failed.
Parameters:
- message: the message associated with the exception object.
- files: the vector of files that failed, with the corresponding error codes.
- code: the HRESULT code associated with the exception object.
BitException( const char* message, std::error_code code, tstring&& file )
Constructs a BitException object with the given message, and the specific file that failed.
Parameters:
- message: the message associated with the exception object.
- code: the HRESULT code associated with the exception object.
- file: the file that failed during the operation.
BitException( const std::string& message, std::error_code code )
Constructs a BitException object with the given message.
Parameters:
- message: the message associated with the exception object.
- code: the HRESULT code associated with the exception object.
const FailedFiles & failedFiles() const noexcept
Returns the vector of files that caused the exception to be thrown, along with the corresponding error codes.
Returns the HRESULT error code corresponding to the exception's std::error_code.
Returns the native error code (e.g., HRESULT on Windows, int elsewhere) corresponding to the exception's std::error_code.
Returns the POSIX error code corresponding to the exception's std::error_code.
Copyright © 2014 - 2024 Riccardo Ostani (@rikyoz)
- Bit7zLibrary
- BitArchiveEditor
- BitArchiveReader
- BitArchiveWriter
- BitException
- BitFileCompressor
- BitFileExtractor
- BitMemCompressor
- BitMemExtractor
- BitStreamCompressor
- BitStreamExtractor
- BitInFormat