AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-112" />

.NET API 879,104 bytes

 DomException

public sealed class DomException : Exception, IDomException
Represents a DOM exception.
using AngleSharp.Common; using System; using System.Runtime.CompilerServices; namespace AngleSharp.Dom { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class DomException : Exception, IDomException { public string Name { get; } public int Code { get; } public DomException(DomError code) : base(code.GetMessage()) { Code = (int)code; Name = code.ToString(); } public DomException(string message) { Code = 0; Name = message; } } }