[HEADERS]
[reactos.git] / irc / TechBot / TechBot.IRCLibrary / IrcException.cs
1 using System;
2
3 namespace TechBot.IRCLibrary
4 {
5 /// <summary>
6 /// Base class for all IRC exceptions.
7 /// </summary>
8 public class IrcException : Exception
9 {
10 public IrcException() : base()
11 {
12 }
13
14 public IrcException(string message) : base(message)
15 {
16 }
17
18 public IrcException(string message, Exception innerException) : base(message, innerException)
19 {
20 }
21 }
22
23 /// <summary>
24 /// Thrown when there is no connection to an IRC server.
25 /// </summary>
26 public class NotConnectedException : IrcException
27 {
28 }
29
30 /// <summary>
31 /// Thrown when there is an attempt to connect to an IRC server and there is already a connection.
32 /// </summary>
33 public class AlreadyConnectedException : IrcException
34 {
35 }
36
37 /// <summary>
38 /// Thrown when there is attempted to parse a malformed or invalid IRC message.
39 /// </summary>
40 public class MalformedMessageException : IrcException
41 {
42 public MalformedMessageException(string message) : base(message)
43 {
44 }
45
46 public MalformedMessageException(string message, Exception innerException) : base(message, innerException)
47 {
48 }
49 }
50 }