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

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