AppExceptions.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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, "Tenancy name already existed" },
  25. {14, "Tenant expected!" },
  26. {15, "Tenant cannot be zero!" },
  27. {16, "Attachments Required" },
  28. {17, "Could Not Move Files" },
  29. {18, "Mapper Issue" },
  30. {19, "InCorrect File Length" },
  31. {20, "Wrong or expired OTP" },
  32. {21, "Empty Response" },
  33. {22, "Error Sending SMS" },
  34. {23, "Invalid Captcha" },
  35. {24, "Account Locked" },
  36. };
  37. }
  38. }