|
Lightweight 0.20251202.0
|
Represents an error that occurred during a ZIP operation. More...
#include <ZipError.hpp>
Static Public Member Functions | |
| static ZipError | FromArchive (zip_t *zip, ZipErrorCode code) |
| static ZipError | FromOpenError (int errorCode, ZipErrorCode code) |
| static ZipError | Custom (ZipErrorCode code, std::string msg) |
Public Attributes | |
| ZipErrorCode | code {} |
| The error code. | |
| int | libzipError {} |
| Original libzip error code (0 if not from libzip) | |
| std::string | message |
| Human-readable error message. | |
Represents an error that occurred during a ZIP operation.
Definition at line 33 of file ZipError.hpp.
|
inlinestatic |
Creates a ZipError from the current error state of a ZIP archive.
| zip | The ZIP archive handle to extract the error from. |
| code | The error code to assign. |
Definition at line 44 of file ZipError.hpp.
References code.
|
inlinestatic |
|
inlinestatic |
Creates a custom ZipError with a user-defined message.
| code | The error code. |
| msg | The error message. |
Definition at line 77 of file ZipError.hpp.
References code.
| ZipErrorCode Lightweight::Zip::ZipError::code {} |
The error code.
Definition at line 35 of file ZipError.hpp.
Referenced by Custom(), FromArchive(), and FromOpenError().
| int Lightweight::Zip::ZipError::libzipError {} |
Original libzip error code (0 if not from libzip)
Definition at line 36 of file ZipError.hpp.
| std::string Lightweight::Zip::ZipError::message |
Human-readable error message.
Definition at line 37 of file ZipError.hpp.
Referenced by FromOpenError().