/*
* Selling Partner API for Authorization
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
namespace FikaAmazonAPI.AmazonSpApiSDK.Clients
{
///
/// 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 dynamic ErrorContent { 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.
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message)
{
this.ErrorCode = errorCode;
this.ErrorContent = errorContent;
}
}
}