#include <ZipException.h>
Public Types | |
enum | ZipErrors { noError, generic = 100, badZipFile, badCrc, noCallback, aborted, abortedAction, abortedSafely, nonRemovable, tooManyVolumes, tooLongFileName, badPassword, dirWithSize, internal, notRemoved, notRenamed, platfNotSupp, cdirNotFound, streamEnd = 500, needDict, errNo, streamError, dataError, memError, bufError, versionError } |
The codes of errors thrown by the ZipArchive library. More... | |
Public Member Functions | |
CZipException (int iCause=generic, LPCTSTR lpszZipName=NULL) | |
CZipException (CZipException &e) | |
CZipString | GetErrorDescription () |
Return the error description. | |
BOOL | GetErrorMessage (LPTSTR lpszError, UINT nMaxError, UINT *=NULL) |
Return the description of the error based on system variables (this function is provided only for compatibility with MFC CException::GetErrorMessage ). | |
Static Public Member Functions | |
static void | Throw (int iZipError=CZipException::generic, LPCTSTR lpszZipName=NULL) |
Throw an exception. | |
static int | ZlibErrToZip (int iZlibError) |
Convert a zlib library error code to a CZipException error code . | |
Public Attributes | |
CZipString | m_szFileName |
The name of the zip file where the error occurred. | |
int | m_iCause |
A cause of the error - takes one of the ZipErrors enumeration codes. | |
Protected Member Functions | |
CZipString | GetInternalErrorDescription (int iCause, bool bNoLoop=false) |
Return the error description. | |
CZipString | GetSystemErrorDescription () |
Return the description of the error based on system variables. |
Library exception class derived in the MFC version from CException
and in non-MFC version from std::exception
.
Definition at line 45 of file ZipException.h.
|
The codes of errors thrown by the ZipArchive library.
Definition at line 147 of file ZipException.h. |
|
|
|
Return the error description.
|
|
Return the description of the error based on system variables (this function is provided only for compatibility with MFC
|
|
Return the error description.
|
|
Return the description of the error based on system variables.
|
|
Throw an exception. Throw CZipException* in the MFC version of the library (the object must be deleted with Delete() method) and CZipException in other versions. The arguments are the same as in CZipException().
Definition at line 78 of file ZipException.h. Referenced by CZipCentralDir::CompareHeaders(). |
|
Convert a zlib library error code to a CZipException error code .
|