* @return - ErrorResult object with the id given
*/
public ErrorResult getErrorByCode(String SID, Long errorid, Long langId) {
if (errorid < 0) {
log.debug("errorid, language_id: " + errorid + "|" + langId);
ErrorValue eValues = errorDao.get(-1 * errorid);
if (eValues != null) {
ErrorType eType = errorDao.getErrorType(eValues.getErrortype_id());
log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
log.debug("eValues.getErrorType() = " + eType);
String eValue = labelDao.getString(eValues.getFieldvalues_id(), langId);
String tValue = labelDao.getString(eType.getFieldvalues_id(), langId);
if (eValue != null) {
return new ErrorResult(errorid, eValue, tValue);
}
}