mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
|
using System;
|
||
|
|
||
|
namespace TechBot.IRCLibrary
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Base class for all IRC exceptions.
|
||
|
/// </summary>
|
||
|
public class IrcException : Exception
|
||
|
{
|
||
|
public IrcException() : base()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public IrcException(string message) : base(message)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public IrcException(string message, Exception innerException) : base(message, innerException)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Thrown when there is no connection to an IRC server.
|
||
|
/// </summary>
|
||
|
public class NotConnectedException : IrcException
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Thrown when there is an attempt to connect to an IRC server and there is already a connection.
|
||
|
/// </summary>
|
||
|
public class AlreadyConnectedException : IrcException
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Thrown when there is attempted to parse a malformed or invalid IRC message.
|
||
|
/// </summary>
|
||
|
public class MalformedMessageException : IrcException
|
||
|
{
|
||
|
public MalformedMessageException(string message) : base(message)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public MalformedMessageException(string message, Exception innerException) : base(message, innerException)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|