test
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user