diff options
author | Raul Santos <raulsntos@gmail.com> | 2022-08-24 13:54:47 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2022-08-26 16:56:00 +0200 |
commit | 79f9f59a87c10bd85c7a31f4b5017bce5bfbbeb1 (patch) | |
tree | 26b47308d7f5752abae3dcefe2b3f7fa56721a65 /modules/mono/glue/GodotSharp/GodotPlugins | |
parent | 9876382df8c0fcb7880ca20b053d1f2b2a358785 (diff) |
Fix various C# exceptions
- Replace `IndexOutOfRangeException` with `ArgumentOutOfRangeException`
- Replace `Exception` with a more specific exception
- Add the parameter name to argument exception
- Update documentation for methods that throw exceptions
- Use `StringBuilder` to build exception messages
- Ensure exception messages end with a period
Diffstat (limited to 'modules/mono/glue/GodotSharp/GodotPlugins')
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotPlugins/Main.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotPlugins/Main.cs b/modules/mono/glue/GodotSharp/GodotPlugins/Main.cs index dad7464410..8308bada24 100644 --- a/modules/mono/glue/GodotSharp/GodotPlugins/Main.cs +++ b/modules/mono/glue/GodotSharp/GodotPlugins/Main.cs @@ -153,7 +153,7 @@ namespace GodotPlugins string assemblyPath = new(nAssemblyPath); if (_editorApiAssembly == null) - throw new InvalidOperationException("The Godot editor API assembly is not loaded"); + throw new InvalidOperationException("The Godot editor API assembly is not loaded."); var (assembly, _) = LoadPlugin(assemblyPath); |