protected ApiException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info == null) return; StatusCode = (HttpStatusCode)(info.GetInt32("HttpStatusCode")); ApiError = (ApiError)(info.GetValue("ApiError", typeof(ApiError))); }
public PagesBuild(string url, PagesBuildStatus status, ApiError error, User pusher, Commit commit, TimeSpan duration, DateTime createdAt, DateTime updatedAt) { Url = url; Status = status; Error = error; Pusher = pusher; Commit = commit; Duration = duration; CreatedAt = createdAt; UpdatedAt = updatedAt; }
protected ApiException(HttpStatusCode statusCode, Exception innerException) : base(null, innerException) { ApiError = new ApiError(); StatusCode = statusCode; }
protected ApiException(ApiError apiError, HttpStatusCode statusCode, Exception innerException) : base(null, innerException) { Ensure.ArgumentNotNull(apiError, "apiError"); ApiError = apiError; StatusCode = statusCode; }