All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.network.LoadingFailedEvent Maven / Gradle / Ivy

There is a newer version: 94.0.4606.61
Show newest version
package com.hubspot.chrome.devtools.client.core.network;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
import com.hubspot.chrome.devtools.client.core.page.ResourceType;

/**
 * Fired when HTTP request has failed to load.
 */
public final class LoadingFailedEvent extends Event {
  private RequestId requestId;

  private MonotonicTime timestamp;

  private ResourceType type;

  private String errorText;

  private Boolean canceled;

  private BlockedReason blockedReason;

  @JsonCreator
  public LoadingFailedEvent(@JsonProperty("requestId") RequestId requestId,
      @JsonProperty("timestamp") MonotonicTime timestamp, @JsonProperty("type") ResourceType type,
      @JsonProperty("errorText") String errorText, @JsonProperty("canceled") Boolean canceled,
      @JsonProperty("blockedReason") BlockedReason blockedReason) {
    this.requestId = requestId;
    this.timestamp = timestamp;
    this.type = type;
    this.errorText = errorText;
    this.canceled = canceled;
    this.blockedReason = blockedReason;
  }

  public RequestId getRequestId() {
    return requestId;
  }

  public MonotonicTime getTimestamp() {
    return timestamp;
  }

  public ResourceType getType() {
    return type;
  }

  public String getErrorText() {
    return errorText;
  }

  public Boolean getCanceled() {
    return canceled;
  }

  public BlockedReason getBlockedReason() {
    return blockedReason;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy