e-CryptIt Engine - Compression Xojo Plugin |

# ZipArchive.LastError Property (console safe)

Returns the last error that occurred by last operation that was executed or zero if no error.

LastError as Integer {Read}

#### Remarks

Error list:

The negative errors are errors caught at high level, while the positive ones are errors caught at low level.
0 = No error.
-1 = Archive not open error.
-2 = Parameter error.
-3 = Got directory when expecting file error.
-4 = Out of bounds error.
-5 = Entry is directory error.
-100 = Unknown error.
1 = Undefined error.
2 = To many files error.
3 = File to large error .
4 = Unsupported method error.
5 = Unsupported encryption error.
6 = Unsupported feature error.
7 = Failed finding central directory error.
8 = Not an zip archive error.
9 = Invalid header or corrupted error.
10 = Unsupported multi-disk error.
11 = Decompression failed.
12 = Compression failed.
13 = Unexpected decompressed size error.
14 = CRC check failed error.
15 = Unsupported cdir size error.
16 = Alloc failed error.
17 = File open failed error.
18 = File create failed error.
19 = File write failed error.
20 = File read failed error.
21 = File close failed error.
22 = File seek failed error.
23 = File stat failed error.
24 = Invalid parameter.
25 = Invalid file name.
26 = Buffer to small.
27 = Internal error.
28 = File not found error
29 = Archive to large error
30 = Validation failed error.
31 = Write callback failed error.
32 = Zip total error

#### See Also

ZipArchive Class