|  |  |  | 
|---|
|  |  |  | package com.genersoft.iot.vmp.conf.exception; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.sun.javafx.binding.StringFormatter; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author lin | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | @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(); | 
|---|
|  |  |  | } | 
|---|