3 namespace TechBot.IRCLibrary
6 /// Base class for all IRC exceptions.
8 public class IrcException : Exception
10 public IrcException() : base()
14 public IrcException(string message) : base(message)
18 public IrcException(string message, Exception innerException) : base(message, innerException)
24 /// Thrown when there is no connection to an IRC server.
26 public class NotConnectedException : IrcException
31 /// Thrown when there is an attempt to connect to an IRC server and there is already a connection.
33 public class AlreadyConnectedException : IrcException
38 /// Thrown when there is attempted to parse a malformed or invalid IRC message.
40 public class MalformedMessageException : IrcException
42 public MalformedMessageException(string message) : base(message)
46 public MalformedMessageException(string message, Exception innerException) : base(message, innerException)