Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Exception catch problem

$
0
0
I am writing some code to read from a file.

I have the file and buffered readers wrapped in a try/catch statement.

the catch portion is as follows

catch (Exception e)
		{
			  System.err.println("Error: " + e.getMessage());
		}


My problem is, is there is a runtime error occuring when I run the program, and it happening in an objects method that is called within the try/catch statement. So unfortunately whatever the error is, it is unknown to me, so diagnosing it is a real problem.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>