com.capitalone.dashboard.misc.HygieiaException 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.misc;
public class HygieiaException extends Exception {
private static final long serialVersionUID = 4596406816345733781L;
public static final int NOTHING_TO_UPDATE = 0;
public static final int JSON_FORMAT_ERROR = -1;
public static final int COLLECTOR_CREATE_ERROR = -10;
public static final int COLLECTOR_ITEM_CREATE_ERROR = -11;
public static final int ERROR_INSERTING_DATA = -12;
public static final int DUPLICATE_DATA = -13;
public static final int BAD_DATA = -14;
public static final int API_RATE_LIMIT_ERROR = -15;
public static final int INVALID_CONFIGURATION = -999;
private int errorCode = 0;
public HygieiaException(String message, int errorCode) {
super(message);
this.errorCode = errorCode;
}
public HygieiaException(String message, Throwable cause, int errorCode) {
super(message, cause);
this.errorCode = errorCode;
}
public HygieiaException(Throwable cause) {
super(cause);
}
public HygieiaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
public int getErrorCode() {
return errorCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy