exception

KO3, PostgresSQL, Transactions, and PDOException

I've run into an issue that I'm hoping to get a little help on. I'm using the following: Kohana 3.0.7 PostgreSQL 8.4 Transactions in PostgreSQL using $db->query(NULL, 'BEGIN', FALSE) $db->query(NULL, 'ROLLBACK', FALSE); $db->query(NULL, 'COMMIT', FALSE); The issue is that when I send a query to the database that results in a...

Getting strange intermittent "unrecognized selector" exceptions in iPhone app

Recently, I've been getting intermittent error reports from my app claiming "unrecognized selector" in areas that could not possibly cause them, and yet they do. For example, this one: Error: NSInvalidArgumentException: *** -[NSCFString didReceiveMemoryWarning]: unrecognized selector sent to instance 0x541fe0 0 CoreFoundation ...

list of all kind sql exceptions

How can i gets the name of all SQL exceptions? For handling them in my project? Thanks. ...

XML reader error: unexpected character content exception while invoking webservice

Am trying to invoke a public web-service using a java client but am getting the following exception: deserialization error: XML reader error: unexpected character content: "<?xml version="1.0" ?> <rankedTermCandidates xmlns="http://www.nactem.ac.uk/xsd/termine" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc...

Exception with WebClient.DownloadFileAsync

I am trying to download a zip file on my server by doing WebClient.DownloadFileAsync(new Uri(DownloadLink), Path.GetFileName(DownloadLink)); I have events linked to download completed and progress changed and when the download gets to 99%, it stops. So I give it a minute and then it gives me an exception: ...

Performance when exceptions are not thrown (C++)

Hello! I have already read a lot about C++ exceptions and what i see, that especially exceptions performance is a hard topic. I even tried to look under the g++'s hood to see how exceptions are represented in assembly. I'm a C programmer, because I prefer low level languages. Some time ago I decided to use C++ over C because with small...

How do you document unchecked exceptions?

Joshua Bloch in his Effective Java writes : "Use the Javadoc @throws tag to document each unchecked exception that a method can throw, but do not use the throws keyword to include unchecked exceptions in the method declaration. " Well that sounds reasonable indeed, but how to find out, what unchecked exception can my method throw? Let...

Why am I getting "must be caught or declared to be thrown" on my program?

I have been working on this program for quite sometime and my brain is fried. I could use some help from someone looking in. I'm trying to make a program that reads a text file line by line and each line is made into an ArrayList so I can access each token. What am I doing wrong? import java.util.*; import java.util.ArrayList; import ...

Strong guarantee method calling strong guarantee methods

Hi all, When I have a method that calls a set of methods that offer strong guarantee, I often have a problem on rolling back changes in order to also have a strong guarantee method too. Let's use an example: // Would like this to offer strong guarantee void MacroMethod() throw(...) { int i = 0; try { for(i = 0; i < 100; ++i) ...

SecurityException with specific running task

Ok, I have written a task switching application that allows you to see all currently "running" apps and allows you to quickly switch between them. Everything works fine and I have it published on the Android Market as "AppSwipe!" However, there is a running app that always shows up after making a phone call that I can't switch to due t...

Exceptions and cancelling

This might be a bit of a stupid question but it has been bugging me so here goes I know that the normal advice is that Exceptions are only meant to be used in exceptional circumstances but I also read people advocating to use exceptions when a method fails to fulfil its contract Cancellation seems to me sit in a bit of a grey area bet...

Why must only certain Exceptions be declared as thrown in method signature

when declaring a methods with "IllegalAccessException" eclipse forces me to declare the method as throwing an exception public void a() throws IllegalAccessException { if(x == 1){ throw new IllegalAccessException("TEST); } } and in method b that uses "IllegalStateException" i dont need to declare the method as throw an excepti...

Generate / create mdump files for in my app

Im looking for a way to generate minidump files in my applications simular to what ProcDump does but prefarably with code and not having to extract a 3dparty tool to do it. The main reasons for not wanting to use ProcDump is: 1) Size of the binary would increase greatly ( This is a problem because my apps are freeware, and bandwith is n...

Orientation specific failure in ListView.layoutChildren -- exception ArrayIndexOutofBoundsException

Hello. I am a very green android developer and need some help with a strange program crash. Often the program will run just fine. There is an equal chance it will fail (see stack at the end). I can watch the program run through the getView function and everything seems in order (i.e. all the information is there as expected and passes...

javax.servlet.jsp.JspTagException: 'begin' < 0

javax.servlet.jsp.JspTagException: 'begin' < 0 Once in a while you run into an error and you say: What the WHAT?? tagexception begin < 0. Seen this wonder before?? ...

What can we do with custom exception?

Hi, I don't know what we can do with a custom exception, what we can't do with a built-in one. It seems a naive question but I really have no idea about that. What do you think? ...

How do exceptions work (behind the scenes) in C#

Identical to "How do exceptions work (behind the scenes) in C++", but for C#. I know that the steps below have to be performed when an exception is thrown. Find the nearest handler for the exception type; Unwind the stack up to the handler level; Call the handler; Find and call every finally blocks. How does .NET handles these opera...

unauthorizedaccessexception for a "MessageBox" in SilverLight

Hi eberybody, I have this piece of code in my Silverlight project: private void button1_Click(object sender, RoutedEventArgs e) { string baseUri = "http://foo.bar"; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri(baseUri)); request.BeginGetResponse(new AsyncCallback(ReadCallback),request); } private v...

HSQLDB cryptic exception message: "feature not supported"

I have JDBC code which inserts into a database table by executing a PreparedStatement. When I run the code on an in-memory HSQLDB database (as part of a JUnit test) I get a SQLFeatureNotSupportedException with the only information being the message "feature not supported" and the vendor code -1500. What I'm doing is a basic insertion i...

Am I allowed to throw an exception inside MPI-parallelized code?

These are some general questions I am facing while designing the error handling for an algorithm that is supposed to run in parallel using MPI (in C++): Do Exceptions work inside code that is executed in parallel? Is the behaviour defined? How do they work? Does that differ for different implementations? Is it good practice - or should...