This repository has been archived on 2025-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
com.unity.netcode.gameobjects/Runtime/Exceptions/SpawnStateException.cs
Unity Technologies 18ffd5fdc8 com.unity.netcode.gameobjects@1.0.0
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).

## [1.0.0] - 2022-06-27

### Changed

- Changed version to 1.0.0. (#2046)
2022-06-27 00:00:00 +00:00

41 lines
1.3 KiB
C#

using System;
namespace Unity.Netcode
{
/// <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) { }
}
/// <summary>
/// Exception thrown when a specified network channel is invalid
/// </summary>
public class InvalidChannelException : Exception
{
/// <summary>
/// Constructs an InvalidChannelException with a message
/// </summary>
/// <param name="message">the message</param>
public InvalidChannelException(string message) : base(message) { }
}
}