using System; namespace QuickLook.Plugin.PEViewer.PEImageParser; /// /// The exception that is thrown when parsing of a fails. /// public sealed class PEImageParseException : Exception { /// /// Gets the offset within the image file at which parsing failed. /// public int Offset { get; private set; } /// /// Initializes a new instance of the class. /// /// The offset within the image file at which parsing failed. /// The message that describes the error. public PEImageParseException(int offset, string message) : base(message) { _ = message ?? throw new ArgumentNullException(nameof(message)); Offset = offset; } }