An exception is a rarely occurring (exceptional!) condition that requires deviation from the program's normal flow. Normally, an exception should not result in total failure, but instead be attended by an exception handler. Exception handling is a built-in construct in many programming languages. ...

learn more… | top users | synonyms (1)

4
votes
7answers
110 views

Difference Between 'Catch', 'Catch (Exception)', and 'Catch(Exception e)'?

What is the difference Between 'Catch', 'Catch (Exception)', and 'Catch(Exception e)' ? try {} catch {} try {} catch (Exception) {} try {} catch(Exception e) {} How do these differ? Which ones ...
4
votes
1answer
39 views

Cleanest way to execute code outside of try block only if no exception is thrown

This question is about the best way to execute code outside of try block only if no exception is thrown. try { //experiment //can't put code after experiment because I don't want a possible ...
-5
votes
2answers
53 views

ClassNotFound Exception when using arrays in Java

Hello! I'm trying to create a chunk of java which allows me to call classes depending on strings called from an array - however, I can't seem to get it to work, unfortunately. If anyone could help I'd ...
-1
votes
2answers
67 views

Why return null after catching an Exception? [closed]

I've encountered some code which is catching RestClientException and then returning null. I think this is bad practice ? Why would a developer (who has since moved on) do this ? The method in which ...
0
votes
0answers
12 views

Catch exception of web start java applet

I start a java applet on my website with deployJava.js from Oracle. var attributes = { id:'applet', code:'dummy.Applet.class', archive: contextPath + ...
0
votes
1answer
19 views

Handling WCF exceptions/faults along with FaultException AND IErrorHandler

I'm interested in implementing a proper exception handling for my WCF application. After a quick google ride, I've come across two solutions. Providing FaultExceptions for the client. General ...
0
votes
0answers
10 views

GWT showing BrowserChannelExceptions with different invalid value types

Using Eclipse Juno with gwt 2.5.1 (no explicit plugin). Now I want to start my webapplication, but i get various exeptions Caused by: com.google.gwt.dev.shell.BrowserChannelException: Invalid value ...
3
votes
1answer
40 views

DownloadFileAsync throwing unhandled exceptions?

I'm using a WebClient in C# to download a file. I'm using client.DownloadFileAsnyc(). In the past this worked fine, any exceptions would be caught and returned in the completion handler ...
1
vote
0answers
8 views

hibernate calling persist causes UnsupportedOperationException

I have the following setup: Windows 7 MSSQL data base hibernate The MSSQL Server is registered using odbcad32.exe as data source! I have the following code: (only important part!) Person p = new ...
0
votes
3answers
19 views

Handling REST Exception

I'm using a REST service with CXF that does a GET request with an int parameter. @Path("parkingservice") public interface ParkingService { /** * @param id * @return */ @GET ...
0
votes
1answer
29 views

Camera.open() THROWS null

Just to be clear: this isn't about a function returning null. It's about a function throwing an Exception which turns out to be null. throw null; Like that. I have a camera application which has ...
0
votes
1answer
17 views

Code 4004 in C# silverlight application

I'm currently having problem in my project. I'm having Code 4004 error in silverlight application. I don't know what I did wrong. Here are the image link. ...
0
votes
1answer
27 views

NullReferenceException on Dictionary.Add with dictionary variable not Null, key not Null and no multithreading

There have been a number of similar questions here, but none explains what is happening in my case; so here goes. I have the following (simplified) piece of code: ' row is a System.Data.DataRow ' ...
0
votes
1answer
20 views

Java - Netbeans: Opening form *as javax.swing.JPanel. Could not use the declared superclass: *

When i press on the "Design view" of my jPanel, i receive the error: Form loaded with errors: Error in loading component: [JPanel] -> (an instance) Cannot create instance of (class name) ...
1
vote
5answers
47 views

Exception handling without breaking, Python

This is probably a very basic question, but I looked through the python documentation on exceptions and couldn't find it. I'm trying to read a bunch of specific values from a dictionary and insert ...

1 2 3 4 5 917
15 30 50 per page