exception when message cannot be send

This commit is contained in:
SCM6WE
2021-09-21 10:56:54 +02:00
parent 697a7ad506
commit 8097b9f2cf
5 changed files with 59 additions and 31 deletions

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyChat.Models.Exceptions
{
public class MessageTimedOutException : Exception
{
public MessageTimedOutException(int seconds) : base(String.Format("After {0} seconds of trying to send the message it has timed out", seconds))
{
}
}
}