org.heigit.ohsome.ohsomeapi.exception.ErrorDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ohsome-api Show documentation
Show all versions of ohsome-api Show documentation
A public Web-RESTful-API for "ohsome" OpenStreetMap history data.
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;
}
}