Roles类中有一个GetRole(Guid roleID, bool cacheable)方法,此处在找不到角色的时候抛出了一个异常
throw new CSException(CSExceptionType.ResourceNotFound, "Role not found: " + roleID.ToString());
此处异常类型为ResourceNotFound,应该改成RoleNotFound类型才对。

throw new CSException(CSExceptionType.RoleNotFound, "Role not found: " + roleID.ToString());

另外一个同样需要修改的方法还有 GetRole(string roleName, bool cacheable)

相关文章:

  • 2021-11-10
  • 2022-01-08
  • 2021-11-20
  • 2021-04-05
  • 2022-12-23
  • 2021-07-16
  • 2021-07-28
  • 2022-01-11
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-10-18
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案