When a Source Control Plug-in API function returns an error, it is expected to be one of the following error codes. All errors are negative, warnings or informational error codes are positive, and success is 0.
Plug-in supports adding files from source control in two steps. For more information, see SccSetOption Function.
The local file is different from the file in the source control database (for example, SccDiff Function may return this value).
Local file was changed during the source control operation; the IDE should reload the file if possible.
The file is not affected.
The Project was created during the source control operation (for example, during a call to SccOpenProject Function when SCC_OP_CREATEIFNEW flag is specified).
Operation was cancelled.
Plug-in supports advanced options for the specified command. For more information, see SccGetCommandOptions Function.
Error: initialization failed.
Error: project is unknown.
Error: project could not be created.
Error: the file is not checked out.
Error: the file is already checked out.
Error: the file is locked.
Error: the file is exclusively checked out.
There was a problem accessing the source control system, probably due to network or contention issues. A retry is recommended.
Error: there was a conflict during check in.
Error: the file already exists.
Error: the file is not under source control.
Error: the file is checked out.
Error: there is no specified version.
Error: the operation is not supported.
Error, the operation was not performed.
Error: the type of the file, for example, binary, is not supported by the source code control system.
File has been auto-merged but has not been checked because it is pending user verification.
File has been auto-merged but has not been checked in due to a merge conflict that must be manually resolved.
Error due to a shell failure.
Error: the user is invalid.
Error: the project is already open.
Project syntax error.
Error: the file path is invalid.
Error: the project is not open.
Error: the user is not authorized to perform this operation.
File syntax error.
Error, the local file does not exist.
Error: there was a connection failure.
Background get operation is currently in progress.
All Source Control Plug-in API functions (except the SccAdd Function, SccCheckin Function, and SccDiff Function) are expected to succeed when the local files that are passed as arguments do not exist in the working folder. For example, the IDE may issue a call to the SccCheckout Function or SccUncheckout Function on a file that does not exist in the working folder, but exists in the source control system. This call would succeed. Only when there is no file in the working folder or in the source control system is the function expected to fail.
Certain functions, such as SccAdd and SccCheckin, should specifically return SCC_E_FILENOTEXIST when the file in the working folder does not exist. Other functions are expected to succeed when the working file does not exist, if the functions operate on a valid file name in the source control system.
The source control plug-in should make no assumptions regarding privileges on a file in the working folder, even if the plug-in had marked the file read-only during some operation. A file in the working folder can be moved, deleted, and changed outside the plug-in's control.