Practice_Unity/Library/PackageCache/com.unity.inputsystem@be6c4fd0abf5/InputSystem/Utilities/ExceptionHelpers.cs
2025-09-16 17:30:13 +09: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;
}
}
}