exception

try/throw blocks when writing new front-end for llvm

llvm-config puts -fno-exceptions in the LDFLAGS for linking llvm itself. Am I right in assuming this means that I cannot use normal C++ try/throw blocks in code (such as a new language front-end) that link against the llvm compiler? I'm not talking about programs the compiler produces, but the compiler itself. I do not want to meddle ...

Why is it a "bad idea" to throw your own exceptions?

Why is it a "bad idea" to throw your own exceptions? found here ...

Using a debugger and curses at the same time?

I'm calling python -m pdb myapp.py, when an exception fires, and I'd normally be thrown back to the pdb interpreter to investigate the problem. However this exception is being thrown after I've called through curses.wrapper() and entered curses mode, rendering the pdb interpreter useless. How can I work around this? ...

What's up with document.domConfig on Firefox?

I was iterating over properties of document when I ran into an interesting phenomena in Firefox, document claims to support the property domConfig although MDC says it isn't implemented but when I try to retrieve the property I get an exception: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS...

Dealing with Floating Point exceptions

Hi, I am not sure how to deal with floating point exceptions in either C or C++. From wiki, there are following types of floating point exceptions: IEEE 754 specifies five arithmetic errors that are to be recorded in "sticky bits" (by default; note that trapping and other alternatives are optional and, if provided, non-default). * ...

ant sql task throws "no ResultSet available" with org.sqlite.JDBC driver

I'm trying to use org.sqlite.JDBC to create and update a sqlite database in ant. The sqlitejdbc-v056.jar comes from http://www.zentus.com/sqlitejdbc/ and is the latest version (056) This is my build.xml: <?xml version="1.0" encoding="utf-8"?> <project name="My Project" default="mytarget" basedir="."> <path id="antclasspath"> ...

Is there any way to make a yield created Iterator Continue to the next item upon an Exception?

Hello Is there any way to have a yield created iterator continue to the next item when an exception occurs inside one of the iterator blocks? This is currently not working: Boolean result; while (true) { try { result = enumerator.MoveNext(); //Taken from a yield created e...

Catch any error in Flex app and record it

Hey all, is there any way to catch any error within Flex application and send it via let's say email or record it somehow (this emailing or recording part is not the problem, just error catching for whole application is). This would be very useful, for fining any bugs that clients get while using app, and which they don't send in as n...

android View not attached to window manager

I am having some of the following exceptions: java.lang.IllegalArgumentException: View not attached to window manager at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355) at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:191) at android.view.Window$LocalWindowManager.updateViewLay...

Raise exception on shell command failure?

I'm writing some scripts in Ruby, and I need to interface with some non-Ruby code via shell commands. I know there are at least 6 different ways of executing shell commands from Ruby, unfortunately, none of these seem to stop execution when a shell command fails. Basically, I'm looking for something that does the equivalent of: set -o...

WCF Server Exception Handling in UI

I would like to be able to catch exception from the server and display an error beside a field that related to the error. I have a NTier client server application that uses WCF services and DTOs to pass data from the server to the client and back. I would be validating a domain object on the server and if it had error I would want to t...

Embedded C++ : to use exceptions or not?

I realize this may be subjective, so will ask a concrete question, but first, background: I have always been an embedded software engineer, but usually at Layer 3 or 2 of the OSI stack. I am not really a hardware guy. I have generally always done telecoms products, usually hand/cell-phones, which generally means something like an ARM ...

swfloader: can I catch all the exceptions from the loaded swf?

I am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable? ...

any actionscript exception that will not cause the flash player to pop up a dialog?

Hi, Till now all the exceptions in my code will cause the host flash player to pop up a window to say there is an exception and the execution will be paused, I am wondering is there any exception/abnormal things that will be detected by flash player but not be popped up? Thanks. ...

WCF Exception: InvalidOperationException was unhandled

Since I'm contemplating to use WCF I thought it would be best to just follow a simple tutorial to get my feet wet. 3 hours later, I've only got one exception to show for. It won't go away. I ruled out the app.config not being loaded. If I change: wsHttpBinding in the config to JHGHJGH it gives an error when running. However when I ch...

Why does Pylint give error E0702, raising NoneType, on this raise statement?

Say I have the following code. def foo(): foobar = None if foobar is not None: raise foobar When I run this code through pylint, I get the following error: E0702:4:foo: Raising NoneType while only classes, instances or string are allowed Is this a bug in pylint? Is my pylint too old? pylint 0.18.0, astng 0.19.1, c...

Designing a language with Checked Exceptions

I'm well aware of the whole argument over whether or not checked exceptions are a good idea and I fall on the side that they are...but that is not the point of this question. I'm in the process of designing a fairly simple compiled OOP language and I've decided to use checked exceptions basically as a way of returning errors without goin...

Where are JavaScript exceptions displayed when using Android WebView?

I have this simple HTML that I load into an Android WebView (SDK version 1.5)- <html> <body onload="nomethod()"> <h1>Hello World</h1> </body> </html> Function nomethod() doesn't exist but the LogCat doesn't display any error. It seems that any exception that isn't caught cannot be traced. Any idea how can I handle or trace uncaught ex...

WebBrowser.Navigate(...) throws COMException

Hi! Developing an Internet Explorer command button, that will open a specific web page once clicked. A snippet of code (IEApp is a reference to an instance of IE.WebBrowser.): IEApp.Navigate(sURL, ref one, ref two, ref three, ref four); The above line throws the following COMException: Exception Source: Interop.SHDocVw Exception...

Where to handle an Exception

Hey guys, I'm currently working on a project and I've come upon a bit of a head scratcher. I've been programming in Java for about two years, and I've covered exceptions, but never properly understood them. In my current situation I've got my main method which initializes a class WikiGraph wiki = wiki = new WikiGraph(getFile()); Th...