using System; using System.Runtime.Serialization; namespace Hik.Samples.Scs.IrcChat.Exceptions { /// /// This exception is thrown by Chat server if a user wants to login /// with a nick that is being used by another user. /// [Serializable] public class NickInUseException : ApplicationException { /// /// Contstructor. /// public NickInUseException() { } /// /// Contstructor. /// public NickInUseException(SerializationInfo serializationInfo, StreamingContext context) : base(serializationInfo, context) { } /// /// Contstructor. /// /// Exception message public NickInUseException(string message) : base(message) { } } }