vknet_vk/VkNet/Exception/ExecuteException.cs
Инютин Максим Николаевич 3b145a3327 Рефакторинг проекта
2025-09-09 01:02:47 +03:00

26 lines
No EOL
799 B
C#

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json.Linq;
namespace VkNet.Exception;
/// <summary>
/// Исключение, которое выбрасывается при нахождении ошибок в ответе метода execute.
/// </summary>
[Serializable]
public sealed class ExecuteException : AggregateException
{
/// <summary>
/// Поле response из ответа метода execute.
/// </summary>
public JRaw Response { get; }
/// <inheritdoc />
public ExecuteException(IEnumerable<System.Exception> innerExceptions, JRaw response) : base(innerExceptions) => Response = response;
/// <inheritdoc />
private ExecuteException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
}