protected ApiException(ApiError apiError, HttpStatusCode statusCode, Exception innerException) : base(null, innerException) { Ensure.ArgumentNotNull(apiError, "apiError"); ApiError = apiError; StatusCode = statusCode; }
protected ApiException(HttpStatusCode statusCode, Exception innerException) : base(null, innerException) { ApiError = new ApiError(); StatusCode = statusCode; }