File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Catching an exception from a exception-chain in Web Tier
 
Similar Threads
Exception Handling
Throwing UnmarshalException
Please final review before submit
what's bad about catching "runtime exception" or "exception"
simple try & catch