Compartilhar via


OpenApiWriterException Constructors

Definition

Overloads

OpenApiWriterException()

Creates a new instance of the OpenApiWriterException class with default values.

OpenApiWriterException(String)

Creates a new instance of the OpenApiWriterException class with an error message.

OpenApiWriterException(String, Exception)

Creates a new instance of the OpenApiWriterException class with an error message and an inner exception.

OpenApiWriterException()

Creates a new instance of the OpenApiWriterException class with default values.

public OpenApiWriterException ();
Public Sub New ()

Applies to

OpenApiWriterException(String)

Creates a new instance of the OpenApiWriterException class with an error message.

public OpenApiWriterException (string message);
new Microsoft.OpenApi.Exceptions.OpenApiWriterException : string -> Microsoft.OpenApi.Exceptions.OpenApiWriterException
Public Sub New (message As String)

Parameters

message
String

The plain text error message for this exception.

Applies to

OpenApiWriterException(String, Exception)

Creates a new instance of the OpenApiWriterException class with an error message and an inner exception.

public OpenApiWriterException (string message, Exception innerException);
new Microsoft.OpenApi.Exceptions.OpenApiWriterException : string * Exception -> Microsoft.OpenApi.Exceptions.OpenApiWriterException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The plain text error message for this exception.

innerException
Exception

The inner exception that is the cause of this exception to be thrown.

Applies to