648540858
2022-09-30 a4f48a15223400a580a61df92a17d6e2309406cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.genersoft.iot.vmp.conf.exception;
 
import com.sun.javafx.binding.StringFormatter;
 
/**
 * @author lin
 */
public class SsrcTransactionNotFoundException extends Exception{
    private String deviceId;
    private String channelId;
    private String callId;
    private String stream;
 
 
 
    public SsrcTransactionNotFoundException(String deviceId, String channelId, String callId, String stream) {
        this.deviceId = deviceId;
        this.channelId = channelId;
        this.callId = callId;
        this.stream = stream;
    }
 
    public String getDeviceId() {
        return deviceId;
    }
 
    public String getChannelId() {
        return channelId;
    }
 
    public String getCallId() {
        return callId;
    }
 
    public String getStream() {
        return stream;
    }
 
    @Override
    public String getMessage() {
        StringBuffer msg = new StringBuffer();
        msg.append(String.format("缓存事务信息未找到,device:%s channel: %s ",  deviceId, channelId));
        if (callId != null) {
            msg.append(",callId: " + callId);
        }
        if (stream != null) {
            msg.append(",stream: " + stream);
        }
        return msg.toString();
    }
}