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

Loading…
Cancel
Save