Closed asishallab closed 4 years ago
This check, and possible error generation, should happen in the model layer. For generic models add a remark in the function comment (JSDoc) that such an error must be thrown if no record for the argument ID is found. Thus the programmer knows or is reminded to implement it in that way.
Especially data model of storage-type
SQL
should throw an error, if there is no persistent record for the input argumentID
(<idAttribtue>
).