예제 #1
0
 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)));
 }
예제 #2
0
 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;
 }
예제 #3
0
 protected ApiException(HttpStatusCode statusCode, Exception innerException)
     : base(null, innerException)
 {
     ApiError   = new ApiError();
     StatusCode = statusCode;
 }
예제 #4
0
        protected ApiException(ApiError apiError, HttpStatusCode statusCode, Exception innerException)
            : base(null, innerException)
        {
            Ensure.ArgumentNotNull(apiError, "apiError");

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