Share via


OpenXmlPackageException Constructors

Definition

Overloads

OpenXmlPackageException()

Initializes a new instance of the OpenXmlPackageException class.

OpenXmlPackageException(String)

Initializes a new instance of the OpenXmlPackageException class using the supplied error message.

OpenXmlPackageException(String, Exception)

Initializes a new instance of the OpenXmlPackageException class using the supplied error message and a reference to the inner exception that caused the current exception.

OpenXmlPackageException()

Initializes a new instance of the OpenXmlPackageException class.

public OpenXmlPackageException ();
Public Sub New ()

Applies to

OpenXmlPackageException(String)

Initializes a new instance of the OpenXmlPackageException class using the supplied error message.

public OpenXmlPackageException (string message);
new DocumentFormat.OpenXml.Packaging.OpenXmlPackageException : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackageException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

OpenXmlPackageException(String, Exception)

Initializes a new instance of the OpenXmlPackageException class using the supplied error message and a reference to the inner exception that caused the current exception.

public OpenXmlPackageException (string message, Exception innerException);
new DocumentFormat.OpenXml.Packaging.OpenXmlPackageException : string * Exception -> DocumentFormat.OpenXml.Packaging.OpenXmlPackageException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that indicates the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to