Fix exceptions and logs

pull/113/head
prathabanKavin 1 year ago
parent 5f9fa7cf74
commit 439c19e8e2

@ -70,9 +70,9 @@ public class ConfigOperationMSSQLDAOImpl extends GenericOperationDAOImpl {
}
}
} catch (SQLException e) {
String msg = "Error occurred while adding command operation";
String msg = "Error occurred while adding command operation" + operation.getId();
log.error(msg, e);
throw new OperationManagementDAOException(msg);
throw new OperationManagementDAOException(msg, e);
}
}
@ -143,12 +143,12 @@ public class ConfigOperationMSSQLDAOImpl extends GenericOperationDAOImpl {
String msg = "IO Error occurred while de serialize the policy operation " +
"object";
log.error(msg, e);
throw new OperationManagementDAOException(msg);
throw new OperationManagementDAOException(msg, e);
} catch (ClassNotFoundException e) {
String msg = "Class not found error occurred while de serialize the policy " +
"operation object";
log.error(msg, e);
throw new OperationManagementDAOException(msg);
throw new OperationManagementDAOException(msg, e);
} catch (SQLException e) {
String msg = "SQL Error occurred while retrieving the policy operation " +
"object available for the id '"
@ -190,12 +190,12 @@ public class ConfigOperationMSSQLDAOImpl extends GenericOperationDAOImpl {
String msg = "IO Error occurred while de serialize the configuration " +
"operation object";
log.error(msg, e);
throw new OperationManagementDAOException(msg);
throw new OperationManagementDAOException(msg, e);
} catch (ClassNotFoundException e) {
String msg = "Class not found error occurred while de serialize the " +
"configuration operation object";
log.error(msg, e);
throw new OperationManagementDAOException(msg);
throw new OperationManagementDAOException(msg, e);
} catch (SQLException e) {
String msg = "SQL error occurred while retrieving the operation available " +
"for the device'" + enrolmentId + "' with status '" + status.toString();

Loading…
Cancel
Save