summaryrefslogtreecommitdiffstats
path: root/samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs
blob: 41f3424f43a1c10d7988a503cae11fe74045e56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Runtime.Serialization;

namespace Hik.Samples.Scs.IrcChat.Exceptions
{
    /// <summary>
    /// This exception is thrown by Chat server if a user wants to login
    /// with a nick that is being used by another user.
    /// </summary>
    [Serializable]
    public class NickInUseException : ApplicationException
    {
        /// <summary>
        /// Contstructor.
        /// </summary>
        public NickInUseException()
        {

        }

        /// <summary>
        /// Contstructor.
        /// </summary>
        public NickInUseException(SerializationInfo serializationInfo, StreamingContext context)
            : base(serializationInfo, context)
        {

        }

        /// <summary>
        /// Contstructor.
        /// </summary>
        /// <param name="message">Exception message</param>
        public NickInUseException(string message)
            : base(message)
        {

        }
    }
}