wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Catching an exception from a exception-chain in Web Tier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Catching an exception from a exception-chain in Web Tier" Watch "Catching an exception from a exception-chain in Web Tier" New topic
Author

Catching an exception from a exception-chain in Web Tier

Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23
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

Joined: Apr 20, 2009
Posts: 804
    
    1

Please post the code example.


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Catching an exception from a exception-chain in Web Tier
 
Similar Threads
Throwing UnmarshalException
what's bad about catching "runtime exception" or "exception"
Please final review before submit
Exception Handling
simple try & catch