mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Exceptions from MtProtoSender.cs to TLSharp.Core/Network/Exceptions Exceptions from TelegramClient.cs to TLSharp.Core/Exceptions
17 lines
482 B
C#
17 lines
482 B
C#
using System;
|
|
|
|
namespace TLSharp.Core.Network.Exceptions
|
|
{
|
|
internal abstract class DataCenterMigrationException : Exception
|
|
{
|
|
internal int DC { get; private set; }
|
|
|
|
private const string REPORT_MESSAGE =
|
|
" See: https://github.com/sochix/TLSharp#i-get-a-xxxmigrationexception-or-a-migrate_x-error";
|
|
|
|
protected DataCenterMigrationException(string msg, int dc) : base (msg + REPORT_MESSAGE)
|
|
{
|
|
DC = dc;
|
|
}
|
|
}
|
|
} |