Any mechanism to throw an Exception which reach to the container(even if it is not inside a try-catch block)

Posted on 2009-07-13
Medium Priority
Last Modified: 2012-05-07
Is there a mechanism where when a particular exception when thrown,(but this throw is not written inside a try-catch block) propagates to the Container level and not lost ?

We wanted to throw an Exception but not help it propagates by writting the code there) but the exception manages to reach the Container on its own.

Any pointers or suggestions will be highly appreciated.
Question by:manojatinfy
  • 2
LVL 92

Expert Comment

ID: 24846828
exceptions don't get lost, its either getting to your container and it is ignoring it, or something earlier is catching it and ignoring.

Expert Comment

ID: 24846830
You want the exception to reach the container or you want to catch it somewhere?
LVL 92

Accepted Solution

objects earned 2000 total points
ID: 24846841
Try throwing a RuntimeException, stands a better chance of not getting caught before it gets back to your container

you should add exception handling to your container though

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Media Temple is proud to announce our partnership with the Society of Digital Agencies (SoDA) as their exclusive hosting partner.
Whether you have a site with just static html pages or a dynamic database-driven one, this step-by-step migration guide will help you get started with your new DV server. This guide is by no means comprehensive but it should cover the basics to get …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question