Class
WorkbookHasNoWorksheetException

Thrown when an operation requires at least one worksheet but the workbook has none.

Definition

Constructors

WorkbookHasNoWorksheetException(string)

Initializes a new WorkbookHasNoWorksheetException with the specified error message.

Declaration

cs-api-definition
public WorkbookHasNoWorksheetException(string message)

Parameters

message

string

The message.

WorkbookHasNoWorksheetException(string, Exception)

Initializes a new WorkbookHasNoWorksheetException with the specified error message and inner exception.

Declaration

cs-api-definition
public WorkbookHasNoWorksheetException(string message, Exception innerException)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

WorkbookHasNoWorksheetException(string, Exception, string)

Initializes a new WorkbookHasNoWorksheetException with the specified error message, inner exception, and localization key.

Declaration

cs-api-definition
public WorkbookHasNoWorksheetException(string message, Exception innerException, string key)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

key

string

The key.

WorkbookHasNoWorksheetException(string, string)

Initializes a new WorkbookHasNoWorksheetException with the specified error message and localization key.

Declaration

cs-api-definition
public WorkbookHasNoWorksheetException(string message, string key)

Parameters

message

string

The message.

key

string

The key.