Class ApiException
public class ApiException : Exception, ISerializable
- Inheritance
-
ApiException
- Implements
- Derived
- Inherited Members
Constructors
ApiException(string, int, string, IReadOnlyDictionary<string, IEnumerable<string>>, Exception)
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 string Response { get; }
Property Value
StatusCode
public int StatusCode { get; }
Property Value
Methods
ToString()
Creates and returns a string representation of the current exception.
public override string ToString()
Returns
- string
A string representation of the current exception.