summaryrefslogtreecommitdiffstats
path: root/samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs')
-rw-r--r--samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs b/samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs
new file mode 100644
index 0000000..41f3424
--- /dev/null
+++ b/samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs
@@ -0,0 +1,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)
+ {
+
+ }
+ }
+}