/* * OpenAPI Petstore * * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; namespace Org.OpenAPITools.Client { /// /// API Exception /// public class ApiException : Exception { /// /// Gets or sets the error code (HTTP status code) /// /// The error code (HTTP status code). public int ErrorCode { get; set; } /// /// Gets or sets the error content (body json object) /// /// The error content (Http response body). public object ErrorContent { get; private set; } /// /// Gets or sets the HTTP headers /// /// HTTP headers public Multimap Headers { get; private set; } /// /// Initializes a new instance of the class. /// public ApiException() { } /// /// Initializes a new instance of the class. /// /// HTTP status code. /// Error message. public ApiException(int errorCode, string message) : base(message) { this.ErrorCode = errorCode; } /// /// Initializes a new instance of the class. /// /// HTTP status code. /// Error message. /// Error content. /// HTTP Headers. public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) { this.ErrorCode = errorCode; this.ErrorContent = errorContent; this.Headers = headers; } } }