using System;
namespace TechBot.IRCLibrary
{
///
/// Base class for all IRC exceptions.
///
public class IrcException : Exception
{
public IrcException() : base()
{
}
public IrcException(string message) : base(message)
{
}
public IrcException(string message, Exception innerException) : base(message, innerException)
{
}
}
///
/// Thrown when there is no connection to an IRC server.
///
public class NotConnectedException : IrcException
{
}
///
/// Thrown when there is an attempt to connect to an IRC server and there is already a connection.
///
public class AlreadyConnectedException : IrcException
{
}
///
/// Thrown when there is attempted to parse a malformed or invalid IRC message.
///
public class MalformedMessageException : IrcException
{
public MalformedMessageException(string message) : base(message)
{
}
public MalformedMessageException(string message, Exception innerException) : base(message, innerException)
{
}
}
}