33 lines
No EOL
1.1 KiB
C#
33 lines
No EOL
1.1 KiB
C#
using System;
|
|
|
|
namespace MLAPI.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// Exception thrown when an object is not yet spawned
|
|
/// </summary>
|
|
public class SpawnStateException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Constructs a SpawnStateException
|
|
/// </summary>
|
|
public SpawnStateException() { }
|
|
|
|
/// <summary>
|
|
/// Constructs a SpawnStateException with a message
|
|
/// </summary>
|
|
/// <param name="message">The exception message</param>
|
|
public SpawnStateException(string message) : base(message) { }
|
|
|
|
/// <summary>
|
|
/// Constructs a SpawnStateException with a message and a inner exception
|
|
/// </summary>
|
|
/// <param name="message">The exception message</param>
|
|
/// <param name="inner">The inner exception</param>
|
|
public SpawnStateException(string message, Exception inner) : base(message, inner) { }
|
|
}
|
|
|
|
public class InvalidChannelException : Exception
|
|
{
|
|
public InvalidChannelException(string message) : base(message) { }
|
|
}
|
|
} |