# HtmlDomLimitException

Thrown when shared HTML DOM traversal exceeds configured safety limits.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlDomLimitException.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L16)

**Base**

`InvalidOperationException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Thrown when shared HTML DOM traversal exceeds configured safety limits.

## Inheritance

- InvalidOperationException
- HtmlDomLimitException

Filter members 

Show inherited

## Constructors

`public HtmlDomLimitException(string code, string message, string source, long actual, long limit)` [#](#constructor-ctor-string-string-string-int64-int64)

[HtmlDomLimitException.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L16)

Creates an HTML DOM traversal limit exception.

Parameters

**code string required**

Stable diagnostic code associated with the limit.

**message string required**

Human-readable message.

**source string required**

Configured limit source that was exceeded.

**actual long required**

Observed value.

**limit long required**

Configured limit.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from Exception

Returns

`Type`

`public override string ToString()` [#](#method-tostring)

Inherited from Exception

Returns

`string`

## Properties

`public string Code { get; }` [#](#property-code)

[HtmlDomLimitException.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L29)

Stable diagnostic code associated with the limit.

`public string LimitSource { get; }` [#](#property-limitsource)

[HtmlDomLimitException.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L32)

Configured limit source that was exceeded.

`public long Actual { get; }` [#](#property-actual)

[HtmlDomLimitException.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L35)

Observed value.

`public long Limit { get; }` [#](#property-limit)

[HtmlDomLimitException.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L38)

Configured limit.

`public string Detail { get; }` [#](#property-detail)

[HtmlDomLimitException.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Traversal/HtmlDomLimitException.cs#L41)

Formatted detail containing the observed and configured values.

## Inherited Properties

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

<!-- PowerForge markdown artifact sha256:C9B8FB8743294EB50E2FC342790B952AB85E4C62EB0E74B9FAF465EF197CB320 -->
