-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improving error handling for Client spawning
- should not only give 1 error for failing to spawn instead of 2 - now throws SpawnObjectException instead of InvalidOperationException when failing to spawn - GetPrefab throws ArgumentException if 0 is given - GetPrefab throws SpawnObjectException if prefab not found BREAKING CHANGE: ClientObjectManager.GetPrefab now throws instead of returning null
- Loading branch information
1 parent
9c51fef
commit 02ca962
Showing
5 changed files
with
82 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
namespace Mirage | ||
{ | ||
/// <summary> | ||
/// Exception thrown when spawning fails | ||
/// </summary> | ||
[Serializable] | ||
public class SpawnObjectException : Exception | ||
{ | ||
public SpawnObjectException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters