@@ -83,13 +83,19 @@ error_code("RoleDataInconsistent", 80)
8383error_code ("NoClientContext" , 81 )
8484error_code ("NoProgressMade" , 82 )
8585error_code ("RemoteResultsUnavailable" , 83 )
86+ error_code ("IndexOptionsConflict" , 85 )
87+ error_code ("IndexKeySpecsConflict" , 86 )
8688
8789# Non-sequential error codes (for compatibility only)
8890error_code ("NotMaster" , 10107 ) #this comes from assert_util.h
8991error_code ("DuplicateKey" , 11000 )
9092error_code ("InterruptedAtShutdown" , 11600 )
9193error_code ("Interrupted" , 11601 )
9294error_code ("OutOfDiskSpace" , 14031 )
95+ error_code ("BackgroundOperationInProgressForDatabase" , 12586 );
96+ error_code ("BackgroundOperationInProgressForNamespace" , 12587 );
9397
9498error_class ("NetworkError" , ["HostUnreachable" , "HostNotFound" ])
9599error_class ("Interruption" , ["Interrupted" , "InterruptedAtShutdown" , "ExceededTimeLimit" ])
100+ error_class ("IndexCreationError" , ["CannotCreateIndex" , "IndexOptionsConflict" ,
101+ "IndexKeySpecsConflict" , "IndexAlreadyExists" ])
0 commit comments