New answers tagged

2 votes

What is considered best practice for custom exception classes?

Exception classes should be as specific as error handling might need to be. Think about using your code: when each error is raised, how would you want to handle it? Errors that must be handled the ...
user avatar
  • 189
0 votes

Should domain know about exceptions thrown from outer layer?

Let's take a hypothetical system, a state based, exceptions thrown from persistence layer or other outer layer, should propagate to ui layer through domain layer. Domain need not know about this ...
user avatar
2 votes

Should domain know about exceptions thrown from outer layer?

If you‘re using concentric architecture models such as hexagonal architecture, onion architecture or clean architecture, the inner cores (e.g model) should not depend on outer cores. However, ...
user avatar
  • 67.8k

Top 50 recent answers are included