AppFlowy/rust-lib/flowy-user/src/protobuf/proto/errors.proto

38 lines
971 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
message UserError {
2021-08-30 14:44:17 +00:00
ErrorCode code = 1;
string msg = 2;
}
2021-08-30 14:44:17 +00:00
enum ErrorCode {
Unknown = 0;
UserDatabaseInitFailed = 1;
AcquireWriteLockedFailed = 2;
AcquireReadLockedFailed = 3;
UserDatabaseDidNotMatch = 4;
UserDatabaseInternalError = 5;
2021-07-24 10:55:13 +00:00
SqlInternalError = 6;
2021-08-31 15:01:46 +00:00
DatabaseConnectError = 7;
UserNotLoginYet = 10;
ReadCurrentIdFailed = 11;
WriteCurrentIdFailed = 12;
2021-08-21 09:17:54 +00:00
EmailIsEmpty = 20;
EmailFormatInvalid = 21;
EmailAlreadyExists = 22;
PasswordIsEmpty = 30;
PasswordTooLong = 31;
PasswordContainsForbidCharacters = 32;
PasswordFormatInvalid = 33;
2021-09-01 08:08:32 +00:00
PasswordNotMatch = 34;
2021-08-21 09:17:54 +00:00
UserNameTooLong = 40;
UserNameContainsForbiddenCharacters = 41;
UserNameIsEmpty = 42;
UserWorkspaceInvalid = 50;
UserIdInvalid = 51;
2021-09-07 15:30:43 +00:00
UserTokenInvalid = 54;
UserNotExist = 55;
CreateDefaultWorkspaceFailed = 60;
DefaultWorkspaceAlreadyExist = 61;
2021-08-24 05:10:53 +00:00
ServerError = 100;
}