Timeline for Is the use of a catch block as a "rollback mechanism" a bad thing?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 2, 2022 at 16:05 | comment | added | Thiago Dias | sure, i'm going to edit the question and the title | |
May 2, 2022 at 15:07 | comment | added | Doc Brown |
@ThiagoDias: would you mind to give a short outline of what happens inside //... bussiness actions to provoke the exception?
|
|
May 2, 2022 at 11:54 | comment | added | Thiago Dias | I think i choose a bad title for this question haha, my fault.. I agree that this is not ideal because this is a problem for the specific repository (from the third party API) and is mixing business with technical stuff, but the problem is that I cannot iterate over all the fields because the User entity and its Value Objects are created from the API response, the validation is "atomic", either the User is created with valid value objects or it's not because the first is going to throw an exception | |
May 2, 2022 at 11:47 | history | edited | Doc Brown | CC BY-SA 4.0 |
added 259 characters in body
|
May 2, 2022 at 6:44 | history | edited | Doc Brown | CC BY-SA 4.0 |
deleted 4 characters in body
|
May 2, 2022 at 6:04 | history | answered | Doc Brown | CC BY-SA 4.0 |