* @return - ErrorResult object with the id given
*/
public ErrorResult getErrorByCode(String SID, Long errorid, Long language_id) {
if (errorid < 0) {
log.debug("errorid, language_id: " + errorid + "|" + language_id);
ErrorValue eValues = errorManagement.getErrorValuesById(-1
* errorid);
if (eValues != null) {
log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
log.debug("eValues.getErrorType() = " + errorManagement.getErrorType(eValues.getErrortype_id()));
Fieldlanguagesvalues errorValue = fieldManager
.getFieldByIdAndLanguage(eValues.getFieldvalues_id(),
language_id);
Fieldlanguagesvalues typeValue = fieldManager
.getFieldByIdAndLanguage(errorManagement.getErrorType(eValues.getErrortype_id())
.getFieldvalues_id(), language_id);
if (errorValue != null) {
return new ErrorResult(errorid, errorValue.getValue(),
typeValue.getValue());
}