In the Hardware bill of materials (BoM) data model, the insert() method has to insert a record into each of the RTKDesignElectric, RTKDesignMechanic, RTKMilHdbkF, RTKNSWC, and RTKReliability database tables for the new hardware item. This Hardware BoM data model does this by calling the insert() method for each, respective data model (five separate insert() calls). Each of these calls returns an error code and error message.
The hardware BoM data model should return an error code and error message that aggregates all the error codes and error messages in some way. This should be used to generate debug log and error dialog messages to notify the user there was a problem.
Actual Behavior
The error codes and error messages are ignored; nothing is done with them. Adding a new hardware item fails silently.
Expected Behavior
In the Hardware bill of materials (BoM) data model, the insert() method has to insert a record into each of the RTKDesignElectric, RTKDesignMechanic, RTKMilHdbkF, RTKNSWC, and RTKReliability database tables for the new hardware item. This Hardware BoM data model does this by calling the insert() method for each, respective data model (five separate insert() calls). Each of these calls returns an error code and error message.
The hardware BoM data model should return an error code and error message that aggregates all the error codes and error messages in some way. This should be used to generate debug log and error dialog messages to notify the user there was a problem.
Actual Behavior
The error codes and error messages are ignored; nothing is done with them. Adding a new hardware item fails silently.
Steps to Reproduce the Problem
Operating Environment