mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
55
src/QueryMaster/Exceptions.cs
Normal file
55
src/QueryMaster/Exceptions.cs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace QueryMaster
|
||||
{
|
||||
/// <summary>
|
||||
/// The exception that is thrown by the QueryMaster library
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class QueryMasterException : Exception
|
||||
{
|
||||
public QueryMasterException() : base() { }
|
||||
public QueryMasterException(string message) : base(message) { }
|
||||
public QueryMasterException(string message, Exception innerException) : base(message, innerException) { }
|
||||
protected QueryMasterException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// The exception that is thrown when an invalid message header is received
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InvalidHeaderException : QueryMasterException
|
||||
{
|
||||
public InvalidHeaderException() : base() { }
|
||||
public InvalidHeaderException(string message) : base(message) { }
|
||||
public InvalidHeaderException(string message, Exception innerException) : base(message, innerException) { }
|
||||
protected InvalidHeaderException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The exception that is thrown when an invalid packet is received
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InvalidPacketException : QueryMasterException
|
||||
{
|
||||
public InvalidPacketException() : base() { }
|
||||
public InvalidPacketException(string message) : base(message) { }
|
||||
public InvalidPacketException(string message, Exception innerException) : base(message, innerException) { }
|
||||
protected InvalidPacketException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
}
|
||||
/// <summary>
|
||||
/// The exception that is thrown when there is an error while parsing received packets
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ParseException : QueryMasterException
|
||||
{
|
||||
public ParseException() : base() { }
|
||||
public ParseException(string message) : base(message) { }
|
||||
public ParseException(string message, Exception innerException) : base(message, innerException) { }
|
||||
protected ParseException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue