Files
LowPolyBattleSim/Library/PackageCache/com.unity.inputsystem@e2c83221d2dc/InputSystem/Utilities/ExceptionHelpers.cs
Caleb Sandford deQuincey ecdd3e2a9e intial commit
2025-06-27 23:27:49 +01: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;
}
}
}