
package de.ivu.elect.business.exchange.control;

import java.io.Serializable;

import javax.annotation.Nullable;

public class WebServiceErreichbarStatus implements Serializable {

  private static final long serialVersionUID = 1L;

  private final WebServiceStatus webServiceStatus;

  private final Exception exception;

  public WebServiceErreichbarStatus(WebServiceStatus webServiceStatus, @Nullable Exception exception) {
    super();

    this.webServiceStatus = webServiceStatus;

    this.exception = exception;
  }

  public WebServiceErreichbarStatus(WebServiceStatus webServiceStatus) {
    this(webServiceStatus, null);
  }

  public WebServiceStatus getWebServiceStatus() {
    return webServiceStatus;
  }

  @Nullable
  public Exception getException() {
    return exception;
  }
}
