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

enterprises.orbital.evekit.ws.common.ServiceError Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package enterprises.orbital.evekit.ws.common;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(
    description = "EveKit Web Service Error")
public class ServiceError {
  private int    errorCode    = 0;
  private String errorMessage = "";

  public ServiceError(int errorCode, String errorMessage) {
    super();
    this.errorCode = errorCode;
    this.errorMessage = errorMessage;
  }

  @ApiModelProperty(
      value = "Error code")
  @JsonProperty("errorCode")
  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(
                           int errorCode) {
    this.errorCode = errorCode;
  }

  @ApiModelProperty(
      value = "Error message")
  @JsonProperty("errorMessage")
  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(
                              String errorMessage) {
    this.errorMessage = errorMessage;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy