Discuss this help topic in SecureBlackbox Forum

TElZipReader.OnArchiveError

TElZipReader     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when an error occurs during archive reading.

Declaration

[C#]
    event TSBZipArchiveErrorEvent OnArchiveError;
    delegate void TSBZipArchiveErrorEvent(Object Sender, int ErrorCode, string ErrorMessage, ref bool TryContinue);

[VB.NET]
    Event OnArchiveError As TSBZipArchiveErrorEvent
    Delegate Sub TSBZipArchiveErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer, ByVal ErrorMessage As String, ByRef TryContinue As Boolean)

[Pascal]
    property OnArchiveError : TSBZipArchiveErrorEvent;
    TSBZipArchiveErrorEvent = procedure(Sender : TObject; ErrorCode : integer; const ErrorMessage : string; var TryContinue : boolean) of object;

[C++]
    void get_OnArchiveError(TSBZipArchiveErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnArchiveError(TSBZipArchiveErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBZipArchiveErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode, const char * pcErrorMessage, int32_t szErrorMessage, int8_t &TryContinue);

[PHP]
    TSBZipArchiveErrorEvent|callable|NULL get_OnArchiveError()
    void set_OnArchiveError(TSBZipArchiveErrorEvent|callable|NULL $Value)
    callable TSBZipArchiveErrorEvent(TObject $Sender, integer $ErrorCode, string $ErrorMessage, bool &$TryContinue)

[Java]
    TSBZipArchiveErrorEvent getOnArchiveError();
    void setOnArchiveError(TSBZipArchiveErrorEvent Value);
    TSBZipArchiveErrorEvent.Callback OnArchiveError = new TSBZipArchiveErrorEvent.Callback() {
        public void TSBZipArchiveErrorEventCallback(TObject Sender, int ErrorCode, String ErrorMessage, TSBBoolean TryContinue) {
            //...
        }
    }

Parameters

  • ErrorCode - specifies the error code.
  • ErrorMessage - contains textual description of the error.
  • TryContinue - set this parameter to True if you want TElZipReader to try to overcome the error.
  • pcErrorMessage - contains textual description of the error.
  • szErrorMessage - the length of pcErrorMessage.

Error codes:

Description

This event is fired when TElZipReader encounters error during archive reading. It is useful when archives are slightly corrupted, and TElZipReader may try to overcome these errors if user sets the TryContinue parameter to True. Instead of creating event handler, IgnoreArchiveErrors property may be used.

See also:     IgnoreArchiveErrors    

Discuss this help topic in SecureBlackbox Forum