rohit
rohit

Reputation: 622

what is best way service layer can provide to tell Controller part if anything happens bad(Exception)

I am using spring3.0.2 for my project "Online Exam"

Putting business logic in service layer makes controller easy to feel.

what is best way service layer can provide to tell Controller part if anything happens bad(Exception)

Eager to hear soon!!

Upvotes: 1

Views: 93

Answers (1)

richarbernal
richarbernal

Reputation: 1059

Throw your own exceptions, and then, catch them inside your controller so you can define exactly the best behavior

Upvotes: 1

Related Questions