I am facing some odd situation that when I select/deselect the features in the feature customization wizard, it sometimes crashes the window. It does not give any clue at all. It also not happens consistently.
Do you have any idea or faced such kind of issue? I am able to even trace the root cause using install log.
...
I'm wrapping a java.sql.RecordSet inside a java.util.Iterator. My question is, what should I do in case any recordset method throws an SQLException?
The java.util.Iterator javadoc explains which exceptions to throw in various situations (i.e. NoSuchElementException in case you call next() beyond the last element)
However, it doesn't m...
Hi
Some one please tell me how to handle RunTimeExceptions in grails version1.1 .I have followed the following tutorial.I could not get it working.
http://blog.bruary.net/2008/03/grails-custom-exception-handling.html
I have MyException which extends RunTimeException .If this particular exception comes I want show different error page....
I have an application written using the M-V-VM approach.
The data access is done in the Model. If a fatal error occurs here (for example, the connection to the data source is lost), and Exception is thrown. This Exception bubbles up to the ViewModel.
However, because the original trigger of the data access was a data binding, WPF swall...
We have an application which relies heavily on Adobe Spry. For authentication purposes a Single Sign On Solution is used. (Its a WebSeal, but I don't think that matters to much)
We now have pretty much exactly the problem described here: http://www.ibm.com/developerworks/tivoli/library/t-ajaxtam/index.html#user_session_expire i.e. we ge...
I've problem with exception dialogs: I'm using RemObjects SDK for Client/Server -application. When there's connection problem, the client starts throwing "simple" exceptions dialogs, just text and a button. When I'm running the application on my development machine the exceptions dialogs are not shown (as expected). The text on the dialo...
When an exception occurs in Python, can you inspect the stack? Can you determine its depth? I've looked at the traceback module, but I can't figure out how to use it.
My goal is to catch any exceptions that occur during the parsing of an eval expression, without catching exceptions thrown by any functions it may have called. Don't be...
If I use a class/method like the one described here how can I get the description/address of the call at the top of the stack?
Basically I want some value I can use in a call to our bug tracking system. I want to "uniquely" identify based on the address of the instruction that caused the exception.
(It is usually something of the form...
I have methods that all propagate exceptions and then I have handling on one place, however I realized something.
Let's say I have method like this
public void foo() throws Exception e {
Statement stmt = createStatement();
doSomething(stmt);
stmt.close();
}
My issue is that if exception is thrown by doSometing() method the stat...
I know Exception Handling is a very important thing and we are doing it in all our projects. The main reason is to log errors that occur at the customers. This works fine and is not problem at all.
But while I am still coding and running the application with Visual Studio I don't want any exception handling at all. I want the debugger s...
I am writing a class that does operations to multiple streams. Here is a example of what I am doing now
Dictionary<int, int> dict = new Dictionary<int, int>(_Streams.Count);
for (int i = 0; i < _Streams.Count; i++)
{
try
{
dict.Add(i, _Streams[i].Read(buffer, offset, count));
}
catch (System.IO.IOException e)
...
When Exception is displayed (or more general - when it is converted to String) stack trace is shown. What I want to do is to change the format of source code's file paths shown in such trace.
Specifically I would like to leave filenames only (without full path) or show only that part of path which starts with project's base directory. F...
I have seen some developers use the return statement in a catch block. Why/when would this be a useful technique to employ?
EDIT: I actually just saw the return keyword being used.
Thanks
...
A search yields a couple of questions on catching fatal exceptions, but this one is specific to using SimpleTest. (I know that SimpleTest is out of date, but getting PHP-Unit to work on my configuration is another question).
I am trying to get the tearDown() method to work even when there is a fatal exception, as I create some test rows...
I am currently using two catch blocks after a try block. The first catches SqlExceptions, the second Exceptions.
If the SqlException does not have a specific message, I want it to be handled by the general catch block. Is there any way I can pass the exception from the first catch block to the second, or do I have to duplicate the code?
...
I'm working on the back-end of my website and I'm wondering how far I should be going to test for errors and throwing exceptions accordingly? Testing in the sense of improper usage of methods and functions. Not errors under correct usage.
My biggest concern is code bloat and uglying it up with a bunch of if/elses, type checks, and other...
We are developing a proxy in WCF that will serve as a means of communication for some handhelds running our custom client application. I am curious what error handling strategies people use as I would rather not wrap EVERY proxy call in try/catch.
When I develop ASP .NET I dont catch the majority of exceptions, I leverage Application_E...
Can I throw an exception on the SQL 2005 server so that I can catch it in C# code with SqlCommand.ExecuteQuery()?
...
How do I overwrite the global Exception handler in javascript so that it becomes the top level handler for all uncaught exceptions?
EDIT: window.onerror didnt work, code is:
<HTML>
<HEAD>
<script language='javascript'>
window.onerror = function (em, url, ln) {
alert(em + ", " + url + ", " + ln);
return false;
...
Looking for suggestions/best practices on managing error codes and messages in a multi-tiered applications. Specifically things like:
Where should error codes be defined? Enum? Class?
How are error messages or further details associated with the error codes? resource files? attributes on enum values, etc.?
If you have a multi-tier app...