Skip to content

BZip2.BZ2Exception

Andrew Lambert edited this page Nov 27, 2022 · 3 revisions

BZip2.BZip2Exception

Class Declaration

 Protected Class BZip2Exception
 Inherits RuntimeException

Remarks

This exception type will be raised if a required BZip2 function call returns an error code. The ErrorNumber and Message properties will contain the error code and a message for that code, respectively.

BZip2 Error numbers

Name Number Comment
BZ_OK 0 No error.
BZ_SEQUENCE_ERROR -1 An invalid sequence of BZip2 commands was used.
BZ_PARAM_ERROR -2 A parameter to a BZip2 function is invalid or out of range.
BZ_MEM_ERROR -3 There is insufficient available memory to perform the requested operation.
BZ_DATA_ERROR -4 The decompression buffer contains invalid or incomplete BZip2 data.
BZ_DATA_ERROR_MAGIC -5 The data do not appear to be a BZip2 stream.
BZ_IO_ERROR -6 Error while reading or writing a file.
BZ_UNEXPECTED_EOF -7 The decompression stream ended unexpectedly.
BZ_OUTBUFF_FULL -8 The output buffer can contain no further data.
BZ_CONFIG_ERROR -9 The BZip2 library was not compiled for the current CPU architecture.

Methods

Clone this wiki locally