"MessageType": 5
Voice2Med Client отправляет уведомление в момент возникновения ошибки. Содержимое описывается классом ErrorInfo:
Класс описания возникшей ошибки |
|||
Поле |
Тип поля |
Обязательное |
Описание |
Text |
String |
Да |
Текстовое сообщение об ошибке |
DebugText |
String |
Нет |
Расширенное описание ошибки |
Например, попытка загрузки некорректного описания формы (описание формы) вернёт ошибку.
Обработанная ошибка:
{
"MessageType": 5,
"Data": {
"Text": "В сохраняемой форме не задан ключ."
}
}
Необработанная ошибка (не удалось обработать структуру JSON-файла):
{
"MessageType": 5,
"Data": {
"Text": "Внутренняя ошибка сервера, попробуйте выполнить операцию позже",
"DebugText": "Newtonsoft.Json.JsonReaderException: Invalid property identifier character:
{. Path 'Data.Childs[0]', line 7, position 6.\r\n
at Newtonsoft.Json.JsonTextReader.ParseProperty()\r\n
at Newtonsoft.Json.JsonTextReader.ParseObject()\r\n
at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren,
Boolean writeDateConstructorAsDate, Boolean writeComments)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateJObject(JsonReader reader)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader,
Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
JsonProperty containerMember, Object existingValue)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader,
Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
JsonProperty containerMember, Object existingValue)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(
JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(
JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty,
ObjectConstructor`1 creator, String id)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader,
Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
JsonProperty containerMember, Object existingValue)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader,
Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
JsonProperty containerMember, Object existingValue)\r\n
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType,
Boolean checkAdditionalContent)\r\n
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r\n
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\r\n
at Dictation.Common.Connection.MessageWrapper.Deserialize[T](String _text)\r\n
at Dictation.Common.Connection.MessageTransceiver`1.ProcessMessage(String _message)"
}
}