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
stringstatusCode
intresponse
stringheaders
IReadOnlyDictionary<string, IEnumerable<string>>innerException
Exception
Properties
Headers
public IReadOnlyDictionary<string, IEnumerable<string>> Headers { get; }
Property Value
Response
public virtual string? Response { get; }
Property Value
StatusCode
public int StatusCode { get; }