Path: redb-route/redb.Route/Core/XmlLimitException.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Core/XmlLimitException.cs
----
using System.Xml;
namespace redb.Route.Core;
///
/// A document went over one of its . It is an : whoever already
/// answers malformed XML as the sender's fault answers this one the same way, with the position in the document.
///
public sealed class XmlLimitException : XmlException
{
/// Creates the exception.
/// The name of the property that was exceeded.
/// Its value.
/// What went over it.
/// Line of the offending node, or 0 when unknown.
/// Position of the offending node in its line, or 0 when unknown.
public XmlLimitException(string limit, long maximum, string message, int lineNumber, int linePosition)
: base(message, null, lineNumber, linePosition)
{
Limit = limit;
Maximum = maximum;
}
/// The name of the property that was exceeded, for example MaxDepth.
public string Limit { get; }
/// The value of that limit.
public long Maximum { get; }
}