Copyright © 2006-2023 MultiMedia Soft

Downloader.LastFileExceptionGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the eventual exception code generated by a file access error during the latest downloading session. The call to this method is indicated when one between the Downloader.SessionStartToFile and the Downloader.SessionStartToMemory methods returns a negative value (indicating an invalid unique identifier) and the LastError property is set to ERR_DOWNLOADER_REMOTE_FILE_FAILURE or ERR_DOWNLOADER_LOCAL_FILE_FAILURE.

 

For details about management of download sessions from HTTP and FTP servers, refer to the How to manage download sessions tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function LastFileExceptionGet (

) as Int16


 

[C#]

public Int16 LastFileExceptionGet (

);


 

[C++]

public: Int16 LastFileExceptionGet(

);


Return value

 

Value

Meaning

0

No error occurred.

1

An unspecified error occurred.

2

The file could not be located.

3

All or part of the path is invalid.

4

The permitted number of open files was exceeded.

5

The file could not be accessed.

6

There was an attempt to use an invalid file handle.

7

The current working directory cannot be removed.

8

There are no more directory entries.

9

There was an error trying to set the file pointer.

10

There was a hardware error.

11

SHARE.EXE was not loaded, or a shared region was locked.

12

There was an attempt to lock a region that was already locked.

13

The disk is full.

14

The end of file was reached.