# EmailLimitExceededException

Thrown when an email artifact exceeds an explicitly configured resource limit.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailLimitExceededException.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L7)

**Base**

`IOException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Thrown when an email artifact exceeds an explicitly configured resource limit.

## Inheritance

- IOException
- EmailLimitExceededException

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [EmailDiagnostic.FromLimit](/api/email/officeimo-email-emaildiagnostic/#method-fromlimit-officeimo-email-emaillimitexceededexception-string-string) parameter `exception`

Filter members 

Show inherited

## Constructors

`public EmailLimitExceededException(string limitName, long actualValue, long maximumValue)` [#](#constructor-ctor-string-int64-int64)

[EmailLimitExceededException.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L7)

Creates a limit exception.

Parameters

**limitName string required**

**actualValue long required**

**maximumValue long 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)

[EmailLimitExceededException.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L16)

Name of the exceeded reader option.

`public long ActualValue { get; }` [#](#property-actualvalue)

[EmailLimitExceededException.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L19)

Observed value.

`public long MaximumValue { get; }` [#](#property-maximumvalue)

[EmailLimitExceededException.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L22)

Configured maximum value.

`public EmailDiagnostic Diagnostic { get; }` [#](#property-diagnostic)

[EmailLimitExceededException.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Diagnostics/EmailLimitExceededException.cs#L25)

Stable, actionable, non-sensitive diagnostic for this failure.

## 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:49D5BE1A25C6521CBB1CFA140B921DA41048C0703991B830202388B2F30362E9 -->
