示例#1
0
        protected ApiException(ApiError apiError, HttpStatusCode statusCode, Exception innerException)
            : base(null, innerException)
        {
            Ensure.ArgumentNotNull(apiError, "apiError");

            ApiError = apiError;
            StatusCode = statusCode;
        }
示例#2
0
 protected ApiException(HttpStatusCode statusCode, Exception innerException)
     : base(null, innerException)
 {
     ApiError = new ApiError();
     StatusCode = statusCode;
 }