...and how best to handle success/failure feedback to the view layer.
Options are:
doBusinessLogic(things)
or
for (Thing thing : things) {
doBusinessLogic(thing)
}
Assuming that we want a view layer that receives success/error feedback in a consistent way (i.e. from single or multiple operations on value objects), what is the best approach?
Clarification:
Handling multiple exception types thrown from a business logic call in the view layer is code heavy and also causes maintenance problems (new exceptions are introduced which the presentation layer doesn't know about). It seems better for the business logic call to handle errors on multiple value objects and 'package' them for the view to deal with in a consistent way.