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

org.heigit.ohsome.ohsomeapi.exception.ErrorDetails Maven / Gradle / Ivy

The newest version!
package org.heigit.ohsome.ohsomeapi.exception;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/** Holds the needed data for returning a custom error response. */
@JsonInclude(Include.NON_NULL)
public class ErrorDetails {
  private String timestamp;
  private int status;
  private String message;
  private String requestUrl;

  public ErrorDetails(String timestamp, int status, String message, String requestUrl) {
    super();
    this.timestamp = timestamp;
    this.status = status;
    this.message = message;
    this.requestUrl = requestUrl;
  }

  public String getTimestamp() {
    return timestamp;
  }

  public int getStatus() {
    return status;
  }

  public String getMessage() {
    return message;
  }

  public String getRequestUrl() {
    return requestUrl;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy