exception

How does this implementation of chaining exceptions work?

Hello, I previously asked a question about how to chaining exceptions in C++, and one of the answers provided a nifty solution to how it can be done. The problem is that I don't understand the code, and trying to have this kind of discussion in the comments is just too much of a bother. So I figured it's better to start a new question e...

Getting ReflectionTypeLoadException on 2nd attempt at reflection in .net 4

In my project I have the following helper method, which goes through all the assembly and gets all types that are subclasses of the BaseCamaFrom type. public static List<Type> GetAllTestActionFormTypes() { List<Type> types = new List<Type>(); // add all the types that are subclasses of BaseCamaForm to the _camaF...

Microsoft JScript runtime error: '__nonMSDOMBrowser' is undefined

I'm working with a Webservice. Whenever I use this webserivce the following exception has occurred!!! this exception doesn't concern to my WebApp files! it concerns to the WebService files. Microsoft JScript runtime error: '__nonMSDOMBrowser' is undefined The exception has occurred in the following function : function WebForm_AutoFocu...

Core Data: NSManagedObjectContext save crashing with unrecognized selector

I'm trying to add Core Data to an existing application, which isn't easy considering that all the documentation and every tutorial starts out with creating an app that uses core data from the start. So I'm trying to convert an existing model class to be a core data entity. Here's what I did: Add the core data framework. Add an xcdatamo...

javascript-canvas Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

OK, I have two versions of my code. The first appears to work (mostly) and the 2nd gives me the Uncaught Error in the topic name. defs: var VID_WID = 640; var VID_HIGH = 360; var OUT_WID = 480; var OUT_HIGH = 320; var NUM_WID = 3; var NUM_HIGH = 3; var TILE_WIDTH = VID_WID / NUM_WID; var TILE_HEIGHT = VID_HIGH / NUM_HIGH; var OUT_WI...

What Exceptions Could string = string throw besides System.OutOfMemoryException?

The code: public Constructor(string vConnection_String) { try { mConnection_String = vConnection_String; } catch (Exception ex) { ExceptionHandler.CatchEx(ex); } } I think the person who programmed this was "just being careful," but out of interest what exceptions could be thrown on ...

Android: Leaked IntentReceiver exception is being thrown even though I call unregisterReceiver.

I don't understand why I'm getting this exception when hitting the back button. I have the IntentReceiver registered in the onCreate method and it is supposed to be unregistered in the onPause method. My Log.w() call inside of the onPause method leads me to believe that the unregisterReceiver() method is being called, but I am getting th...

How to return errors to view from controller not tied to a specific model property

Curious what the best practice is for returning errors to a view from a controller where the error isn't really a validation error, but more like "user not found" or "service timeout" type of errors. (in ASP.NET MVC2 framework) I've been adding them to the ModelState's model errors, but that doesn't seem appropriate. (although easy to i...

Unexplainable "can't modify frozen object" exception

Hey, I have encountered a weird problem twice in the past 2 weeks and it's starting to piss me off. I have this very simple code : Rails.logger.debug "Is current_step frozen ? => #{@current_step.frozen?.inspect}" @current_step += 1 Has you can (or not) imagine, this is what is displayed on my console : Is current_step frozen ...

Operation did not succeed because the program cannot commit or quit a cell value change

I know it could be asked several times over SO but i still need your help. My grid is on some another form where its events are written. In an another form i have the following code which from whcih i am accssing the grid via forms object and exception is coming. I got the following error message : "Operation did not succeed because the...

How can I get Spring to fatally exit if an Error is propagated out of a remote call

I have an application which exposes a service via Spring's RMI proxy mechanism. There is a problem whereby sometimes a "blip" on the file-server it has its JARs stored on causes an invocation to propagate a NoClassDefFoundError back to the caller. So far, so fair enough. The thing is, I would like my app to just crash if this happens - ...

Rescue and redirect 500 Error in Rails when Database is not found

We had some patches for our Database applied the other day. I was not given a heads up, and the application went down. We are getting nothing but a white Status: 500 Internal Server Error Content-Type: text/html 500 Internal Server Error page. We are using Rails 2.2.2 I want to redirect the user to /500.html so that they get th...

Catching Thrown Exception from Web Service in Silverlight App

I'm trying to throw and exception from my asmx web service and have the silverlight front end catch the exception within the completed event for the web service. Is this possible? ...

urllib2.urlopen throws 404 exception for urls that browser opens

Hi. The following url (and others like it) can be opened in a browser but causes urllib2.urlopen to throw a 404 exception: http://store.ovi.com/#/applications?categoryId=20&amp;fragment=1&amp;page=1 geturl() returns the same url (no redirect). The headers are copied and pasted from firebug. I tried passing in the headers as a dictionar...

iOS Application Terminates After Exception Thrown in UITableViewDataSource Method

Having meticulously followed the examples and instructions in the Table View Programming Guide for iOS about the proper order in which UITableView delegate and data source methods are called, I thought I had a good idea of how to implement the “handshake” shown in Figure 7-1 and the list that follows, but apparently not. Here's the code...

Forcing a coredump via Wine ignoring SEH

Hi, I'd like to force a coredump from a program (or see its memory at a specific time in some other way). There are a couple of problems though: I'm running it under wine (cannot run via winedbg, because the application detects it) The application uses exceptions / SEH / other handlers, which capture non-standard events Even attaching ...

MERGE - When not matched INSERT's exception

i have a PL/SQL procedure using MERGE : MERGE INTO table_dest d USING (SELECT * FROM my_Table) s ON (s.id = d.id) when matched then UPDATE set d.col1 = s.col1 when not matched then INSERT (id, col1) values (s.id, s.col1); now lets say the query s returns mutiple rows with same id wich will returns an ORA-00001: unique const...

Question about Java.lang.Error

There are lot of posts on java.lang.Error saying it should not be caught. My question is if it should not be caugth the what is the use of it. Since it is Throwable so we can catch it in try catch. I read some posts like only in some situation it should be caught, how to know these situations. In short i want to know what can go wrong w...

AuthenticationException: Error connecting with login URI

Consider the following error related to a token issue in Google Docs. How can this be resolved? com.google.gdata.util.AuthenticationException: Error connecting with login URI ...

Using a lib with enabled exception handling in an application where exception handling is turned off

Hi all, This question is about a C++ library for Windows and we use Visual C++ as our compiler. We enable exception handling compiler option in our library. We also use throw/catch in a few places. One of our customers says that they disable exception handling option in their application. Now the question is, whether they would exper...