com.capitalone.dashboard.model.CollectionError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.model;
public class CollectionError {
private String errorCode;
private String errorMessage;
private long timestamp;
public static final String UNKNOWN_HOST = "Unreachable";
public CollectionError(String errorCode, String errorMessage) {
this.errorCode = errorCode;
this.errorMessage = errorMessage;
this.timestamp = System.currentTimeMillis();
}
public String getErrorCode() {
return errorCode;
}
public String getErrorMessage() {
return errorMessage;
}
public long getTimestamp() {
return timestamp;
}
}