处理异常抛出问题

develop
PL 4 months ago
parent e5b87627cf
commit 110177681b

@ -97,8 +97,9 @@ public class ChatMessageServiceImpl implements ChatMessageService {
} }
return sseEmitter; return sseEmitter;
} catch (Exception e) { } catch (Exception e) {
log.info(e.getStackTrace().toString()); log.info(Arrays.toString(e.getStackTrace()));
throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getStackTrace().toString()); log.error("{}-{}", e.getMessage(), Arrays.toString(e.getStackTrace()));
throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), Arrays.toString(e.getStackTrace()));
} }
} }

Loading…
Cancel
Save