I was wondering when I was doing Java, so I made a note as a record (..) φ
When considering a program that processes in three layers
When catching an Exception that occurred in the bottom refurbishment at the top level,
I thought I had to throw to the upper hierarchy in the middle hierarchy,
It looks like it wasn't necessary ...
Actually, it seems that you can go as shown in the figure below
I think everyone knows it, but ...
Specifically, in a 3-layer client system,
When handling various errors in the presentation layer, the application layer detects the errors that occur in the data layer. Do I have to throw it? It was that.
Recommended Posts