OpenApiException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenApiException() |
Creates a new instance of the OpenApiException class with default values. |
OpenApiException(String) |
Creates a new instance of the OpenApiException class with an error message. |
OpenApiException(String, Exception) |
Creates a new instance of the OpenApiException class with an error message and an inner exception. |
OpenApiException()
Creates a new instance of the OpenApiException class with default values.
public OpenApiException ();
Public Sub New ()
Applies to
OpenApiException(String)
Creates a new instance of the OpenApiException class with an error message.
public OpenApiException (string message);
new Microsoft.OpenApi.Exceptions.OpenApiException : string -> Microsoft.OpenApi.Exceptions.OpenApiException
Public Sub New (message As String)
Parameters
- message
- String
The plain text error message for this exception.
Applies to
OpenApiException(String, Exception)
Creates a new instance of the OpenApiException class with an error message and an inner exception.
public OpenApiException (string message, Exception innerException);
new Microsoft.OpenApi.Exceptions.OpenApiException : string * Exception -> Microsoft.OpenApi.Exceptions.OpenApiException
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.