Table of Contents

Class ExcelLimitExceededException

Namespace
ExcelReader.Core.Reader
Assembly
ExcelReader.Core.dll

Thrown when reading a workbook would exceed one of the resource limits configured on ExcelReaderOptions (e.g. decompressed size, a single cell's byte length, shared-string table size, or ZIP entry count), guarding against maliciously or accidentally oversized files.

public sealed class ExcelLimitExceededException : Exception, ISerializable
Inheritance
ExcelLimitExceededException
Implements
Inherited Members

Constructors

ExcelLimitExceededException()

Initializes a new instance of the ExcelLimitExceededException class.

public ExcelLimitExceededException()

ExcelLimitExceededException(string)

Initializes a new instance of the ExcelLimitExceededException class with the given message.

public ExcelLimitExceededException(string message)

Parameters

message string

The message that describes the error.

ExcelLimitExceededException(string, Exception)

Initializes a new instance of the ExcelLimitExceededException class with the given message and inner exception.

public ExcelLimitExceededException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this exception.

ExcelLimitExceededException(string, long, long)

Initializes a new instance of the ExcelLimitExceededException class for a specific exceeded limit, building the message from the given values and populating LimitName, Limit, and Actual.

public ExcelLimitExceededException(string limitName, long limit, long actual)

Parameters

limitName string

The name of the exceeded limit (e.g. the corresponding ExcelReaderOptions property name).

limit long

The limit, in the unit the named limit is expressed in (bytes, rows, columns, entries, ...).

actual long

The value, in the same unit, that exceeded the limit.

Properties

Actual

Gets the value, in the same unit, that exceeded Limit.

public long Actual { get; }

Property Value

long

Limit

Gets the limit that was exceeded, in the unit LimitName is expressed in.

public long Limit { get; }

Property Value

long

LimitName

Gets the name of the limit that was exceeded.

public string LimitName { get; }

Property Value

string