Files
Test-Multiplayer/Library/PackageCache/com.unity.inputsystem@be6c4fd0abf5/InputSystem/Utilities/ExceptionHelpers.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02:00

17 lines
452 B
C#

using System;
namespace UnityEngine.InputSystem.Utilities
{
internal static class ExceptionHelpers
{
public static bool IsExceptionIndicatingBugInCode(this Exception exception)
{
Debug.Assert(exception != null, "Exception is null");
return exception is NullReferenceException ||
exception is IndexOutOfRangeException ||
exception is ArgumentException;
}
}
}