# ReaderResourceLimitException

A whole-operation budget was exceeded. This failure must not be downgraded to a recoverable parse warning.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`013c05ace7bb` with working tree changes

**Source**

[ReaderResourceLimits.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Reader.Core/ReaderResourceLimits.cs#L40)

**Base**

`IOException`

**Implements**

`ISerializable`

**Modifiers**

sealed

A whole-operation budget was exceeded. This failure must not be downgraded to a recoverable parse warning.

## Inheritance

- IOException
- ReaderResourceLimitException

Filter members 

Show inherited

## Constructors

ReaderResourceLimitException 2 overloads

`public ReaderResourceLimitException(string limitName, long maximum)` [#](#constructor-ctor-string-int64)

[ReaderResourceLimits.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Reader.Core/ReaderResourceLimits.cs#L40)

Creates a named resource-budget failure.

Parameters

**limitName string required**

**maximum long required**

`public ReaderResourceLimitException(string limitName, long maximum, Exception innerException)` [#](#constructor-ctor-string-int64-exception)

[ReaderResourceLimits.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Reader.Core/ReaderResourceLimits.cs#L43)

Creates a terminal resource failure retaining the owning engine's typed admission exception.

Parameters

**limitName string required**

**maximum long required**

**innerException System.Exception required**

## 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 LimitName { get; }` [#](#property-limitname)

[ReaderResourceLimits.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Reader.Core/ReaderResourceLimits.cs#L45)

The exceeded limit property.

`public long Maximum { get; }` [#](#property-maximum)

[ReaderResourceLimits.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Reader.Core/ReaderResourceLimits.cs#L47)

The configured budget.

## 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:3ABB3D0397DDF4BA8130B0DB4121FC6EC52E6C5BA380FE713E76286FCE7A3EB5 -->
