Xceed FTP Library Documentation
XceedFtp control reference / About XceedFTP control error codes
In This Topic
    About XceedFTP control error codes
    In This Topic

    The following constants define all the possible return values for Xceed FTP Library methods that return a value of type HRESULT. The error codes also apply to some event parameters such as the ProcessCompleted event's lResult parameter. The declarations for these error codes are built into the library's "Type Library" (see the EXFError enumeration) and should automatically be accessible by your code.

    Visual Basic users should use the Err object in their error handling code. It provides a textual description of the error code when needed.

    Delphi users can trap the EOleException exception (include "comobj" in your unit’s Uses clause) and access the any of the exception object's properties for information about the error.

    Standard COM error codes

    S_OK (The method call completed successfully. Value = 0)

    E_INVALIDARG (An invalid parameter was passed to a method call. Value = 0x80070057)

    E_OUTOFMEMORY (Not enough memory or system resources available. Value = 0x8007000E)

    E_POINTER (A NULL pointer was passed to a method's [out] parameter. Value = 0x80004003)

    E_UNEXPECTED (Unexpected condition occurred. Contact Xceed support! Value = 0x8000FFFF)

     

    Xceed FTP Library success and warning codes

    FTP_S_PROCESSSTARTED (success code)

    FTP_S_FILESSKIPPED (success code with warning)

    Xceed FTP Library error codes

    FTP_E_ACCOUNTREJECTED

    FTP_E_ACCOUNTREQUIRED

    FTP_E_ALREADYCONNECTED

    FTP_E_BUSY

    FTP_E_COMMANDNOTIMPLEMENTED

    FTP_E_CONNECTIONFAILED

    FTP_E_CREATETCPENDPOINT

    FTP_E_DISCONNECTED

    FTP_E_FILESKIPPED

    FTP_E_FIREWALL_CONNECTIONREJECTED

    FTP_E_FIREWALL_GENERALFAILURE

    FTP_E_FIREWALL_INVALIDUSERNAME

    FTP_E_FIREWALL_OPENCONNECTION

    FTP_E_FIREWALL_UNSUPPORTEDFEATURE

    FTP_E_INVALIDADDRESS

    FTP_E_INVALIDFILENAME

    FTP_E_INVALIDFIREWALLADDRESS

    FTP_E_INVALIDLOCALADDRESS

    FTP_E_INVALIDREPLY

    FTP_E_INVALIDSTATE

    FTP_E_NOTCONNECTED

    FTP_E_NOTLICENSED

    FTP_E_OPENDATACONNECTION

    FTP_E_OPENFILE

    FTP_E_OPENFIREWALLCONNECTION

    FTP_E_OPENREMOTEFILE

    FTP_E_OPERATIONABORTED

    FTP_E_PASSWORDREJECTED

    FTP_E_READREPLYLINE

    FTP_E_RECEIVEFILE

    FTP_E_RECEIVESOCKSREPLY

    FTP_E_REMOTEABORT

    FTP_E_REMOTEFILENOTAVAILABLE

    FTP_E_SENDCOMMAND

    FTP_E_SENDFILE

    FTP_E_SENDFIREWALLCOMMAND

    FTP_E_SERVEROUTOFSTORAGE

    FTP_E_SERVERSHUTTINGDOWN

    FTP_E_TRANSFERDATA

    FTP_E_UNEXPECTEDCOMMANDERROR

    FTP_E_UNEXPECTEDFIREWALLREPLY

    FTP_E_UNEXPECTEDREPLY

    FTP_E_USERNAMEREJECTED

    FTP_E_UNSUPPORTEDFIREWALLREPLY