Files
CartoonFPS/Library/PackageCache/com.unity.inputsystem@7fe8299111a7/InputSystem/Utilities/ExceptionHelpers.cs

17 lines
452 B
C#
Raw Normal View History

2025-08-05 09:30:40 +01:00
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;
}
}
}