1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2020 TiKV Project Authors. Licensed under Apache-2.0.

define_error_codes!(
    "KV:SSTImporter:",

    IO => ("Io", "", ""),
    GRPC => ("gRPC", "", ""),
    UUID => ("Uuid", "", ""),
    FUTURE => ("Future", "", ""),
    ROCKSDB => ("RocksDB", "", ""),
    PARSE_INT_ERROR => ("ParseIntError", "", ""),
    FILE_EXISTS => ("FileExists", "", ""),
    FILE_CORRUPTED => ("FileCorrupted", "", ""),
    INVALID_SST_PATH => ("InvalidSSTPath", "",""),
    INVALID_CHUNK => ("InvalidChunk", "", ""),
    ENGINE => ("Engine", "", ""),
    CANNOT_READ_EXTERNAL_STORAGE => ("CannotReadExternalStorage", "", ""),
    WRONG_KEY_PREFIX => ("WrongKeyPrefix", "", ""),
    BAD_FORMAT => ("BadFormat", "", ""),
    FILE_CONFLICT => ("FileConflict", "", "")
);