Skip to main content

All Questions

9 votes
4 answers
6k views

Should Exceptions Be Expressed on the Domain Model?

Let's say that we have a class PersonName and we throw an exception when some one try to create a instance of PersonName passing an invalid name to the constructor. Should the exception ...
Lucas Piske's user avatar
2 votes
2 answers
1k views

Handling exception types according to the current "layer" of appplication

Imagine this simple application use case, say, for fetching data from outisde of the app. These steps represent the "depth" of the layers, from top to bottom. UI touch event ViewModel handles said ...
Gil Sand's user avatar
  • 2,193