private String errorCode;
private String errorText;
private String details;
+ private String aaiElsErrorCode = AaiElsErrorCode.UNKNOWN_ERROR;
/**
* Instantiates a new error object.
}
/**
- * Creates an error object with the default HTTP Error Code (Status.INTERNAL_SERVER_ERROR)
+ * Creates an error object
*
* @param disposition the disposition
* @param category the category
this.setRESTErrorCode(restErrorCode);
this.setErrorCode(errorCode);
this.setErrorText(errorText);
+ this.setAaiElsErrorCode(AaiElsErrorCode.UNKNOWN_ERROR);
}
// OLD STARTS HERE
/**
* Instantiates a new error object.
- *
* @param severity the severity
* @param errorCode the error code
* @param errorText the error text
this.setErrorText(errorText);
this.setDisposition(disposition);
this.setCategory(category);
+ this.setAaiElsErrorCode(AaiElsErrorCode.UNKNOWN_ERROR);
}
/**
this.setErrorText(errorText);
this.setDisposition(disposition);
this.setCategory(category);
+ this.setAaiElsErrorCode(AaiElsErrorCode.UNKNOWN_ERROR);
}
/**
public void setDetails(String details) {
this.details = details == null ? "" : details;
}
-
+ /**
+ * Sets the aai els error code.
+ *
+ * @param elsErrorCode the new code
+ */
+ public void setAaiElsErrorCode(String elsErrorCode) {
+ aaiElsErrorCode = elsErrorCode;
+ }
+ /**
+ * Gets the aai els error code.
+ *
+ * @return the code
+ */
+ public String getAaiElsErrorCode() {
+ return (aaiElsErrorCode);
+ }
/**
* Gets the error code string. This is also the string
* configured in Nagios to alert on