diff options
author | Halil İbrahim Kalkan <hi_kalkan@yahoo.com> | 2013-04-08 21:44:58 +0300 |
---|---|---|
committer | Halil İbrahim Kalkan <hi_kalkan@yahoo.com> | 2013-04-08 21:44:58 +0300 |
commit | 79953cb56cda204f190ffcd9995b27ebea25e62d (patch) | |
tree | de939755c2e32eaa5fa3e41e21114e1c727ed0a4 /samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions | |
parent | 934c543eb6b0bd7173038e45a7dac0241d091da4 (diff) | |
download | scs-79953cb56cda204f190ffcd9995b27ebea25e62d.zip scs-79953cb56cda204f190ffcd9995b27ebea25e62d.tar.gz scs-79953cb56cda204f190ffcd9995b27ebea25e62d.tar.bz2 |
Adding to github
Adding to github
Diffstat (limited to 'samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions')
-rw-r--r-- | samples/IrcChatSystem/ChatCommonLib/IrcChat/Exceptions/NickInUseException.cs | 40 |
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) + { + + } + } +} |