I am doing a Java Spring-Boot backend project and I am implementing a controller-facade-service pattern on my structure.
So is it best to put all my error handling on the facade layer, while the service just throws the errors occured, and the controller just receives the response entity produced by the facade?
I imagine it this way becausae the facade will be the one place for wrapping up ResponseEntity, if it is an error or a success call, leaving also the controller a cleaner code, just for calls and received responses.