// FtpTreeErrors.h : header file for FtpTree error codes shared externally
//
// Copyright © 1997-2006 - Rhino Software, Inc.
// FTP Voyager® is a registered trademark of Rhino Software, Inc.
// http://www.RhinoSoft.com/
//
// Author: Mark P. Peterson
// Date: August 19, 2005
//
// You are free to use/modify this code but leave this header intact.
// FTP Voyager, the FTP Voyager Software Development Kit, and FtpTree ActiveX
// Control are not public domain. Any registration IDs or non-public domain
// software from Rhino Software, Inc. remains copyrighted. For more information
// refer to the license agreement distributed with the FTP Voyager SDK.
//
// If you decide to use the FTP Voyager Software Development Kit, or FtpTree
// ActiveX control, you must first purchase a license. For more information
// visit http://www.RhinoSoft.com/
//------------------------------------------------------------------------------
// prevent multiple inclusions of this file
#ifndef _FtpTreeErrors_HEADER
#define _FtpTreeErrors_HEADER
/////////////////////////////////////////////////////////////////////////////
// FtpTree Download Errors
/*** pfnDownloadError(nErr) Constants ***/
#define FTPTREE_DE_CANT_CREATE_TEMP_DIR 1 // could not create the temporary directory
#define FTPTREE_DE_MAGIC_FILE 2 // could not find the magic file (internal use for drag and drop)
#define FTPTREE_DE_FILE_NOT_FOUND 3 // the file was not found on the server
#define FTPTREE_DE_CAN_ONLY_BE_A_FILE 4 // the specified file name is actually a folder
#define FTPTREE_DE_FILE_ERROR 5 // see error causes as found in FtpTreeErrors.h
/*** END pfnDownloadError(nErr) ***/
/////////////////////////////////////////////////////////////////////////////
// FtpTree Upload Errors
/*** pfnUploadError(nErr) Constants ***/
#define FTPTREE_UE_FTP_ERROR 1 // retries have been exhausted, an error occurred
#define FTPTREE_UE_FILE_ERROR 2 // see error causes as found in FtpTreeErrors.h
#define FTPTREE_UE_UNABLE_TO_DELETE_LOCAL 3 // the local file could not be deleted
#define FTPTREE_UE_FILE_NOT_FOUND 4 // the source file could not be found
#define FTPTREE_UE_DEST_NOT_DIRECTORY 5 // the specified destination must be a directory
#define FTPTREE_UE_NO_DEST_DIRECTORY 6 // the destination directory does not exist
/*** END pfnUploadError(nErr) ***/
/*** pfnDownloadError(nCause),pfnUploadError(nCause) Constants ***/
// for FTPTREE_DE_FILE_ERROR and FTPTREE_UE_FILE_ERROR, the following are the cause
const long FTPTREE_FE_generic = 1; // unknown or generic file error
const long FTPTREE_FE_fileNotFound = 2; // file was not found
const long FTPTREE_FE_badPath = 3; // the specified path is invalid
const long FTPTREE_FE_tooManyOpenFiles = 4; // too many files are already open
const long FTPTREE_FE_accessDenied = 5; // access to the file or folder is denied
const long FTPTREE_FE_invalidFile = 6; // the file is invalid
const long FTPTREE_FE_removeCurrentDir = 7; // the current directory is gone
const long FTPTREE_FE_directoryFull = 8; // the directory is full
const long FTPTREE_FE_badSeek = 9; // error moving disk head to specified location
const long FTPTREE_FE_hardIO = 10; // a hardware I/O error occurred
const long FTPTREE_FE_sharingViolation = 11; // a sharing violoation occurred, the file may be in use
const long FTPTREE_FE_lockViolation = 12; // the file is locked by another process
const long FTPTREE_FE_diskFull = 13; // the disk drive is full
const long FTPTREE_FE_endOfFile = 14; // the end of the file has been encountered
/*** END pfnDownloadError(nCause),pfnUploadError(nCause) ***/
/////////////////////////////////////////////////////////////////////////////
#endif