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

30 lines
708 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;
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;
ContainForbiddenCharacters = 41;
2021-08-21 09:17:54 +00:00
UserNameIsEmpty = 42;
UserWorkspaceInvalid = 50;
UserIdInvalid = 51;
UserUnauthorized = 54;
2021-09-07 15:30:43 +00:00
UserNotExist = 55;
InternalError = 100;
}