Commit 2eede395 by Future

长连接全局异常处理

parent 1d7277f2
...@@ -82,7 +82,7 @@ public class GeneralMessageHandler { ...@@ -82,7 +82,7 @@ public class GeneralMessageHandler {
// 处理自定义异常 // 处理自定义异常
ApiCode errorCode; ApiCode errorCode;
if (exception instanceof BusinessException) { if (exception instanceof BusinessException) {
errorCode = ApiCode.BUSINESS_EXCEPTION; errorCode = ApiCode.getApiCode(((BusinessException) exception).getErrorCode());
} else if (exception instanceof DaoException) { } else if (exception instanceof DaoException) {
errorCode = ApiCode.DAO_EXCEPTION; errorCode = ApiCode.DAO_EXCEPTION;
} else if (exception instanceof VerificationCodeException) { } else if (exception instanceof VerificationCodeException) {
......
...@@ -26,7 +26,7 @@ public class ListConversationMembersParam implements Serializable { ...@@ -26,7 +26,7 @@ public class ListConversationMembersParam implements Serializable {
@ApiModelProperty(value = "会话表id", required = true) @ApiModelProperty(value = "会话表id", required = true)
private Long conversationId; private Long conversationId;
@ApiModelProperty(value = "角色列表 可多选,不传则查全部", required = true) @ApiModelProperty(value = "角色列表 可多选,不传则查全部")
private List<Integer> roles; private List<Integer> roles;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment