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

28 lines
No EOL
869 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Runtime.Serialization;
using VkNet.Model;
using VkNet.Utils;
namespace VkNet.Exception;
/// <summary>
/// Исключение, которые выбрасывается при работе с неверным ID.
/// Убедитесь, что Вы используете верный идентификатор. Получить ID по короткому
/// имени можно методом
/// utils.resolveScreenName.
/// Код ошибки - 113
/// </summary>
[Serializable]
[VkError(VkErrorCode.InvalidUserId)]
public sealed class InvalidUserIdException : VkApiMethodInvokeException
{
/// <inheritdoc />
public InvalidUserIdException(VkError response) : base(response)
{
}
/// <inheritdoc />
private InvalidUserIdException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(new())
{
}
}