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

27 lines
636 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
message UserError {
2021-07-25 00:13:59 +00:00
UserErrCode code = 1;
string msg = 2;
}
2021-07-25 00:13:59 +00:00
enum UserErrCode {
Unknown = 0;
UserDatabaseInitFailed = 1;
UserDatabaseWriteLocked = 2;
UserDatabaseReadLocked = 3;
UserDatabaseDidNotMatch = 4;
UserDatabaseInternalError = 5;
2021-07-24 10:55:13 +00:00
SqlInternalError = 6;
UserNotLoginYet = 10;
ReadCurrentIdFailed = 11;
WriteCurrentIdFailed = 12;
EmailInvalid = 20;
PasswordInvalid = 21;
UserNameInvalid = 22;
UserWorkspaceInvalid = 23;
UserIdInvalid = 24;
CreateDefaultWorkspaceFailed = 25;
DefaultWorkspaceAlreadyExist = 26;
2021-08-21 05:35:15 +00:00
NetworkError = 100;
}