While I realize there is a similar question (How to serialize an Exception object in C#?), and though the answers on that page were helpful, they didn't exactly solve the problem or answer the question posed.
I believe the question was how to serialize the object to allow it to be reconstructed (deserialized) into the same object. I've...
Hey,
I'm using C# to consume a C library using the following syntax:
[DllImport("clib.so")
static extern int func(char* foo);
I'd like to know if there's any way to catch an exit(#) that happens in the C code so I can reload the library if a critical error ever happens.
Thanks!
...
I am using the Qt script engine in my application as an alternative way for the user to access its functionality. As such, I export some C++ classes to the Qt ScriptEngine, that will serve as the interface to the application. The problem is, these C++ classes can throw exceptions.
I have a "ScriptInterface" class running on its own thr...
I have a table in a database where the _id column is the primary key. If I try to do an insert into this table using an _id that already exists, my application crashes. How can I do this? Is there a specific kind of Exception I can eat? I've tried SQLiteException to no avail.
...
I have about 70+ sites that all run off the same code base. Last week I tried to make sign all of the dlls so I could move them to the GAC so all the sites would use those instead of each having their own bin folder.
I've run into a hiccup with that idea and I have to wait until we get some other issues sorted out on the test server ...
Hi all,
I followed this article : Spring and servlet filters to add a filter on a specific URL.
I added my 'foo' class, which implements 'Filter' interface.
But when I access to my specific URL, an Java exception is catch :
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
My tech...
My application throws this Exception.
I am using Java DB as the back end and i am using JPA
Internal Exception:
java.sql.SQLException: Table/View
'POCKETMONEY' already exists in Schema
'APP'. Error Code: 30000 Call: CREATE
TABLE APP.POCKETMONEY (ID INTEGER NOT
NULL, DateofSpending DATE, DESCRIPTION
VARCHAR(255), AMOUNT IN...
[ipad application] error message at console
-[CFSet release]: message sent to deallocated instance 0xbdd9930 *
Above is the exception in GDB console, in my iPad Application, I want to see what variable or object is getting released how to do that ?
...
Bit by bit I am collecting knowledge of C#.
What Ill like to learn is Good design of Exception handlig ?
Form where I should start ? Any Blog , Book or similar ?
Is there at all good practice for handling exception or that depends on programmers intuition and state of art or experience whatever?
I come to this point for asking this kind ...
Is there something similar to an after_filter that still runs if the action raises an exception?
I'm using an external logger (since I'm on Heroku); the response headers are filtered and logged in the after_filter. If an exception is raised, the filter doesn't run, and I don't have a log of the response header data.
If I try to hook i...
Hi all,
How do I use exceptions and exception handling to make my program continue even if an exception occurs while processing certain files in a set of files?
I want my program to work fine for correct files while for those files which cause an exception in program, it should ignore.
Regards,
magggi
...
if ($disponivel === 0)
{
$razao = $check->cd->reason;
$mensagem = "the domain isn't available. Reason: ".$razao;
}
elseif($disponivel === 1)
{
$mensagem = "the domain doesn't exist - free to register.";
}
return $mensagem;
}
else
{
throw new EppCommandsExceptions('Domain isn't supported - '.$r...
Hi,
I'm getting the following error when I run a webservice client I've created using: eclipse, j2sdk1.4.2_13, axis1.0 and a WSDL file.
java.lang.NoClassDefFoundError: javax/servlet/ServletContext
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.la...
Hi I have a problem handling exceptions in wcf.
I have a service like this one:
[ServiceContract]
public interface IAddressService
{
[OperationContract]
[FaultContract(typeof(ExecuteCommandException))]
int SavePerson(string idApp, int idUser, Person person);
}
I am calling the SavePerson() on the service in the WCFTestClie...
For a constructor with a single parameter, is it OK to throw an ArgumentNullException inside the constructor if the parameter is null/empty? OR, should it be thrown in the method that actually uses the argument? Thanks.
...
How do I cure the cause of the occasional exception IllegalArgumentException occurred while calling setter that Hibernate throws when my program attempts to load a user by name from the database?
Am I incorrectly mapping column USER_RV in table User to class Integer instead of BigDecimal or some other integer type? Note that the same a...
Hello,
I have a solution with several projects. The solution is in Release mode with no optimization and with pdb files generated. While running Unit Tests i get exceptions but the stack trace does not contains the line numbers. At the modules window I can see that the current assembly is not optimized and that it has symbols loaded.
J...
Hi,
I have a main application with a global exception handler installed. Now, for some specific exceptions being raised within another thread I want the global exception handler to be invoked. But it does only handle exceptions from the main thread. I also tried the following from within the thread but it does not work either:
RunInMai...
I have seen this question posted many places but there seems not to be a solution for it. Therefore, I test my luck trying it here. I am using Glassfish 3.0.1 b.22 with Java EE 6 framework.
Here is my form authentication inside Login.jsf
<form action="j_security_check">
<h:panelGrid columns="2" bgcolor="#eff5fa" cellspacing=...
I'm using Delphi (7-2010) and trying to figure out a good way to handle exceptions while freeing forms of an application. The application has several forms that are owned by the Application object. When the user logs out, I need to free all of the existing forms so no user state is maintained and then show the login dialog for the next...