Class ExcelLimitExceededException
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
messagestringThe 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
messagestringThe message that describes the error.
innerExceptionExceptionThe 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
limitNamestringThe name of the exceeded limit (e.g. the corresponding ExcelReaderOptions property name).
limitlongThe limit, in the unit the named limit is expressed in (bytes, rows, columns, entries, ...).
actuallongThe 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
Limit
Gets the limit that was exceeded, in the unit LimitName is expressed in.
public long Limit { get; }
Property Value
LimitName
Gets the name of the limit that was exceeded.
public string LimitName { get; }