aspose file tools*
The moose likes Spring and the fly likes Converting Runtime Exception into Business Exception in Spring AOP throws Advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Converting Runtime Exception into Business Exception in Spring AOP throws Advice" Watch "Converting Runtime Exception into Business Exception in Spring AOP throws Advice" New topic
Author

Converting Runtime Exception into Business Exception in Spring AOP throws Advice

chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 77

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

Joined: Feb 26, 2001
Posts: 5019
    
    8

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


Junilu - [How to Ask Questions] [How to Answer Questions]
chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 77

Hi Junilu,
Thanks for your reply.
But I did not get any example on net so I had to post here.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 5019
    
    8

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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Consider Paul's rocket mass heater.
 
subject: Converting Runtime Exception into Business Exception in Spring AOP throws Advice