Files
Bombaleila/Library/PackageCache/com.unity.inputsystem@57d0e36f6123/InputSystem/Utilities/ExceptionHelpers.cs
2026-03-03 00:39:30 +05: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;
}
}
}