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. ...
0
votes
0answers
5 views
Excel exception as “80040154 is not registered”
I am running application on server side, which is not installed with Office(Client don't want invest). On some excel functionality it throwing exception as "Retrieving the com class factory for ...
0
votes
0answers
15 views
ActionBarSherlock: java.lang.IllegalStateException on very few Devices
I got a very strange issue. Im using ActionbarSherlock in my project. And on very few Devices i get a:
java.lang.RuntimeException: Unable to start activity ...
-2
votes
0answers
40 views
Java - “throws Exception” in the method declaration [duplicate]
I'm given an interface that includes the following method for which I need to write its implementation. I noticed "throws RuntimeException" is stated in the method specification in the interface. What ...
-6
votes
0answers
70 views
Implementing an interface method that “throws HeapOverflowException” [closed]
I'm given an interface that includes the following method for which I need to write an implementation.
I noticed throws HeapOverflowException is stated in the method specification in the interface. ...
3
votes
1answer
75 views
Rules and syntax of exceptions in C++ [closed]
I have three yes/no questions about exceptions in C++:
Does an exception class have to be derived from the exception class defined in the standard library?
If an exception is thrown in a function, ...
0
votes
1answer
22 views
java.sql.SQLException:[SQLITE_ERROR] SQL error or missing database (near “=”:syntax error)
I made the sqlite database using the firefox web development thing, saved it to my pc but I ran into some problem while linking the database. Whenever I click the login button to test I get ...
0
votes
1answer
15 views
Calling datasource.close() in my onDestroy function does not stop errors
I am getting the following error:
06-05 22:30:29.004: E/Database(410): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was ...
1
vote
1answer
35 views
Can I use an annotation inside a method body?
Allows the semantics of Java annotations to place them somewhere inside a functions body, e.g. to annotate a specific function call, statement or expression?
For example:
class MyClass {
void ...
0
votes
1answer
27 views
invoking java function from jsp file
i'm trying to invoke a java function on a jsp page. the function is supposed to send a mail by demand.
this is the java code:
package s;
import java.io.UnsupportedEncodingException;
import ...
0
votes
0answers
28 views
Difference between java.net exceptions (Specifically, no connection)
I'm working on a program that parses a large amount of URLs and grabs images from the links. However, I'm trying to see what to do if I lose connection (i.e. internet drops). How can I differentiate ...
0
votes
1answer
19 views
Python subprocess stderr redirection, redirect warnings, still raise on control flow stoppers?
I did basic due diligence and couldn't find a good answer to this anywhere.
I want to call subprocess.Popen in a way that they will still raise a Python exception when control flow is interrupted, ...
0
votes
2answers
78 views
How is it possible to overload the throw function while writing a custom exception class in C++?
I wrote a routine to store the backtrace and line no and file name etcetera. The purpose for this was to store such data for whenever an exception is thrown. However, the problem I am facing is that ...
0
votes
1answer
22 views
Code Contracts, Tests, Assertions, and Exceptions in .NET, when to use which?
First off, I want to acknowledge that I understand that these are separate concepts with their own domain of purpose.
With that being said I occasionally find myself wondering if the best way to ...
1
vote
1answer
22 views
Python multiprocessing and handling exceptions in workers
I use python multiprocessing library for an algorithm in which I have many workers processing certain data and returning result to the parent process. I use multiprocessing.Queue for passing jobs to ...
1
vote
3answers
52 views
Python: variable “tricking” try-exception, but works for if statement
I know the title seems crazy, but it is true. Here is my predicament. First, I am still a beginner at Python so please be considerate. I am trying to test if a variable exists. Now the variable ...