detect/WebViewControl.Avalonia/RenderProcessTerminatedException.cs

26 lines
665 B
C#
Raw Normal View History

2024-11-13 17:09:15 +08:00
using System;
namespace WebViewControl {
public class RenderProcessCrashedException : Exception {
internal RenderProcessCrashedException(string message) : base(message) {
}
}
public class RenderProcessKilledException : Exception {
public bool IsWebViewDisposing { get; }
internal RenderProcessKilledException(string message, bool webViewDisposing = false) : base(message) {
IsWebViewDisposing = webViewDisposing;
}
}
public class RenderProcessOutOfMemoryException : Exception {
internal RenderProcessOutOfMemoryException(string message) : base(message) {
}
}
}