AppFlowy/shared-lib/flowy-error-code/src/protobuf/proto/code.proto
2022-03-19 16:23:34 +08:00

41 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
enum ErrorCode {
Internal = 0;
UserUnauthorized = 2;
RecordNotFound = 3;
UserIdIsEmpty = 4;
WorkspaceNameInvalid = 100;
WorkspaceIdInvalid = 101;
AppColorStyleInvalid = 102;
WorkspaceDescTooLong = 103;
WorkspaceNameTooLong = 104;
AppIdInvalid = 110;
AppNameInvalid = 111;
ViewNameInvalid = 120;
ViewThumbnailInvalid = 121;
ViewIdInvalid = 122;
ViewDescTooLong = 123;
ViewDataInvalid = 124;
ViewNameTooLong = 125;
ConnectError = 200;
EmailIsEmpty = 300;
EmailFormatInvalid = 301;
EmailAlreadyExists = 302;
PasswordIsEmpty = 303;
PasswordTooLong = 304;
PasswordContainsForbidCharacters = 305;
PasswordFormatInvalid = 306;
PasswordNotMatch = 307;
UserNameTooLong = 308;
UserNameContainForbiddenCharacters = 309;
UserNameIsEmpty = 310;
UserIdInvalid = 311;
UserNotExist = 312;
TextTooLong = 400;
BlockIdIsEmpty = 401;
RowIdIsEmpty = 402;
GridIdIsEmpty = 403;
InvalidData = 404;
}