File size: 452 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
        }
    }
}