Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Catching an exception from a exception-chain in Web Tier

 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.

I need to catch an exception in Web Tier (in a managed bean exactly), which I have thrown in Application Tier (EJB). But if I try to do this the exception-chain will be thrown and I will catch nothing (only the general Exception, not my Exception).

How to solve this?

Thanks, bye.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the code example.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic