AppExceptions.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MTWorkHR.Core.Global
  7. {
  8. public static class AppExceptions
  9. {
  10. public static IDictionary<int, string> ExceptionMessages = new Dictionary<int, string>()
  11. {
  12. {1, "Record Not Existed"},
  13. {2, "Model is not valid"},
  14. {3, "Not Authorized" },
  15. {4, "A property called {0} can't be accessed for type {1}." },
  16. {5, "Username or password incorrect!"},
  17. {6, "Cannot delete the user" },
  18. {7, "Record is already existed!" },
  19. {8, "Record creation failed! Please check the record details and try again." },
  20. {9, "Record update failed! Please check the record details and try again." },
  21. {10, "Record delete failed!" },
  22. {11, "Record name already existed" },
  23. {12, "Record email already existed" },
  24. {13, "Attachment Required" },
  25. {14, "Could Not Move Files" },
  26. {15, "Mapper Issue" },
  27. {16, "InCorrect File Length" },
  28. {17, "Wrong or expired OTP" },
  29. {18, "Empty Response" },
  30. {19, "Error Sending SMS" },
  31. {20, "Invalid Captcha" },
  32. {21, "Account Locked" },
  33. {22, "Invalid File Type" },
  34. {23, "No Vacation Balance" },
  35. {24, "Email Not Exist" },
  36. {25, "Phone Already Exist" },
  37. {26, "User Not Exist" },
  38. {27, "User already checked in" },
  39. };
  40. }
  41. }