Solved

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
3
162 Views
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.
0
Comment
Question by:manojatinfy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Expert Comment

by:objects
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.
0
 
LVL 4

Expert Comment

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

Accepted Solution

by:
objects earned 500 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
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

687 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