• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Converting Runtime Exception into Business Exception in Spring AOP throws Advice

 
Ranch Hand
Posts: 77
Eclipse IDE Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic