using System; namespace Unity.Netcode { /// /// Exception thrown when an object is not yet spawned /// public class SpawnStateException : Exception { /// /// Constructs a SpawnStateException /// public SpawnStateException() { } /// /// Constructs a SpawnStateException with a message /// /// The exception message public SpawnStateException(string message) : base(message) { } /// /// Constructs a SpawnStateException with a message and a inner exception /// /// The exception message /// The inner exception public SpawnStateException(string message, Exception inner) : base(message, inner) { } } /// /// Exception thrown when a specified network channel is invalid /// public class InvalidChannelException : Exception { /// /// Constructs an InvalidChannelException with a message /// /// the message public InvalidChannelException(string message) : base(message) { } } }