errors.proto 533 B

1234567891011121314151617181920212223
  1. syntax = "proto3";
  2. message UserError {
  3. ErrorCode code = 1;
  4. string msg = 2;
  5. }
  6. enum ErrorCode {
  7. EmailIsEmpty = 0;
  8. EmailFormatInvalid = 1;
  9. EmailAlreadyExists = 2;
  10. PasswordIsEmpty = 10;
  11. PasswordTooLong = 11;
  12. PasswordContainsForbidCharacters = 12;
  13. PasswordFormatInvalid = 13;
  14. PasswordNotMatch = 14;
  15. UserNameTooLong = 20;
  16. UserNameContainForbiddenCharacters = 21;
  17. UserNameIsEmpty = 22;
  18. UserIdInvalid = 23;
  19. UserUnauthorized = 24;
  20. UserNotExist = 25;
  21. InternalError = 100;
  22. }