arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.collab-proxy@ab839cc7d2ad/Editor/UI/CheckUnityException.cs

24 lines
554 B
C#
Raw Normal View History

2025-09-25 22:01:28 +02:00
using System;
using UnityEngine;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class CheckUnityException
{
internal static bool IsExitGUIException(Exception ex)
{
return ex is ExitGUIException;
}
internal static bool IsIMGUIPaintException(Exception ex)
{
if (!(ex is ArgumentException))
return false;
return ex.Message.StartsWith("Getting control") &&
ex.Message.Contains("controls when doing repaint");
}
}
}