Table of Contents

Class ApiException

Namespace
JsonApiDotNetCore.OpenApi.Client.NSwag
Assembly
JsonApiDotNetCore.OpenApi.Client.NSwag.dll

Replacement for the auto-generated ApiException class from NSwag.

[UsedImplicitly(ImplicitUseTargetFlags.Members)]
public class ApiException : Exception, ISerializable
Inheritance
ApiException
Implements
Derived
Inherited Members

Constructors

ApiException(string, int, string?, IReadOnlyDictionary<string, IEnumerable<string>>, Exception?)

Replacement for the auto-generated ApiException class from NSwag.

public ApiException(string message, int statusCode, string? response, IReadOnlyDictionary<string, IEnumerable<string>> headers, Exception? innerException)

Parameters

message string
statusCode int
response string
headers IReadOnlyDictionary<string, IEnumerable<string>>
innerException Exception

Properties

Headers

public IReadOnlyDictionary<string, IEnumerable<string>> Headers { get; }

Property Value

IReadOnlyDictionary<string, IEnumerable<string>>

Response

public virtual string? Response { get; }

Property Value

string

StatusCode

public int StatusCode { get; }

Property Value

int