修复回看控制失效 #619

This commit is contained in:
648540858
2022-09-30 17:54:58 +08:00
parent 386b48192d
commit a4f48a1522
12 changed files with 185 additions and 35 deletions

View File

@@ -0,0 +1,27 @@
package com.genersoft.iot.vmp.conf.exception;
/**
* @author lin
*/
public class ServiceException extends Exception{
private String msg;
public ServiceException(String msg) {
this.msg = msg;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
@Override
public String getMessage() {
return msg;
}
}

View File

@@ -39,12 +39,12 @@ public class SsrcTransactionNotFoundException extends Exception{
@Override
public String getMessage() {
StringBuffer msg = new StringBuffer();
msg.append(StringFormatter.format("缓存事务信息未找到device%s channel: %s ", deviceId, channelId));
msg.append(String.format("缓存事务信息未找到device%s channel: %s ", deviceId, channelId));
if (callId != null) {
msg.append("callId: " + callId);
msg.append(",callId: " + callId);
}
if (stream != null) {
msg.append("stream: " + stream);
msg.append(",stream: " + stream);
}
return msg.toString();
}