2020-11-21 11:39:23 +08:00
|
|
|
## Appendix D. Error Code
|
|
|
|
|
2020-11-23 11:41:53 +08:00
|
|
|
**ErrorCode**
|
|
|
|
|
|
|
|
```protobuf
|
|
|
|
enum ErrorCode {
|
2021-09-17 21:59:53 +08:00
|
|
|
Success = 0;
|
|
|
|
UnexpectedError = 1;
|
|
|
|
ConnectFailed = 2;
|
|
|
|
PermissionDenied = 3;
|
|
|
|
CollectionNotExists = 4;
|
|
|
|
IllegalArgument = 5;
|
|
|
|
IllegalDimension = 7;
|
|
|
|
IllegalIndexType = 8;
|
|
|
|
IllegalCollectionName = 9;
|
|
|
|
IllegalTOPK = 10;
|
|
|
|
IllegalRowRecord = 11;
|
|
|
|
IllegalVectorID = 12;
|
|
|
|
IllegalSearchResult = 13;
|
|
|
|
FileNotFound = 14;
|
|
|
|
MetaFailed = 15;
|
|
|
|
CacheFailed = 16;
|
|
|
|
CannotCreateFolder = 17;
|
|
|
|
CannotCreateFile = 18;
|
|
|
|
CannotDeleteFolder = 19;
|
|
|
|
CannotDeleteFile = 20;
|
|
|
|
BuildIndexError = 21;
|
|
|
|
IllegalNLIST = 22;
|
|
|
|
IllegalMetricType = 23;
|
|
|
|
OutOfMemory = 24;
|
|
|
|
IndexNotExist = 25;
|
|
|
|
EmptyCollection = 26;
|
2020-11-23 11:41:53 +08:00
|
|
|
|
2021-09-17 21:59:53 +08:00
|
|
|
// internal error code.
|
|
|
|
DDRequestRace = 1000;
|
2020-11-23 11:41:53 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|