• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting Runtime Exception into Business Exception in Spring AOP throws Advice

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to spring and just learned the concept of spring aop. I want to know how can I convert any Exception to Business Exception in spring AOP's throws advice.
I came to know that it is possible. But dont know how.
It would be great if some one can explain me with example or some link.

Thanks in advance

 
Junilu Lacar
Bartender
Pie
Posts: 7749
60
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chets,

That's what search engines are for: so you can first try to find those examples and links yourself... try aspect-oriented programming with spring
We're here to help after you've done some of the legwork.

Good luck and happy searching
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Junilu,
Thanks for your reply.
But I did not get any example on net so I had to post here.
 
Junilu Lacar
Bartender
Pie
Posts: 7749
60
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well then, pardner, you must not have followed any of the links I gave you before because I'm sure I could find some if I really tried. Sorry to hear about your bad luck in not finding examples. Maybe if you tried to be more specific about what it is you're trying to do, what you tried to do yourself, and what kind of problem(s) you ran into, that kind of effort on your part usually draws out the helping hands from the hills.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah Google searching is easy. Just used "Spring AOP Exception handling example" and got all this

http://www.google.com/search?client=safari&rls=en&q=spring+aop+exception+handling+example&ie=UTF-8&oe=UTF-8

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic