Hi,
I written an exception handler routine that helps us catch problems with our software. I use
SetUnhandledExceptionFilter();
to catch any uncaught exceptions, and it works very well.
However my handler pop's up a dialog asking the user to detail what they were doing at the time of the crash. This is where the problem comes, becau...
I've got a subclassed UserControl that is the content for my main window. I added a DepedencyProperty to my usercontrol, of type ResizeMode, and the PropertyChanged callback sets the ResizeMode of the main window to the value correctly. It runs fine. I can set it from the code behind, or from the XAML, and it works correctly.
However, w...
When compiling a project in Visual Studio, the error message "the exec task needs a command to execute" appears, with no line number. What does this error mean?
(Apologies for asking and answering my own question; I just found an answer as I was writing this. Have made it community wiki, so as not to offend.)
...
I have the following mappings:
public class SecurityMap : ClassMap<Security>
{
public SecurityMap()
{
Table("Security");
CompositeId().KeyProperty(k => k.Id, "SecurityId").KeyProperty(k => k.EndDate);
Map(x => x.LastUpdateUser);
References(x => x.Company).Columns("Compa...
Does a reference exist with a catalog of predefined exceptions for the .NET framework along with examples of when is it appropriate to use each?
...
I created a new project, build and run, it asked me to modify my web.config for debugging and i clicked yes. The projected loaded fine. I switched the target cpu from any to 64bits and i got an exception. How do i build and run 64bit projects?
Server Error in '/' Application.
Could not load file or assembly 'x64Test, Version=1.0.0.0, Cu...
<?php
function some_function($arg) {
if($filter->check_for_safe_input($arg)) {
throw new Exception("Hacking Attempt");
}
do_some_database_stuff($arg);
}
?>
In the above code example, does do_some_database_stuff ever get called if check_for_safe_input fails, or does the exception stop t...
Hi,
I am using apache commons http client to call url using post method to post the parameters and getting the below error rarely. When I explore the reason, didnt get the exact reason for the cause. Can anyone suggest a way to fix this?
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native M...
Hello,
I tried to use BIRT in my webapplication project. But I'm getting this kind of exception all the time:
org.eclipse.birt.core.framework.FrameworkException: Could not find the Framework - org.eclipse.osgi at
org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:123) at
org.eclipse.birt.core.framework.osgi...
Hi, I have the following error while trying to call the save method on managedObjectContext.
#0 0x939214e6 in objc_exception_throw
#1 0x01ded83b in -[NSObject doesNotRecognizeSelector:]
#2 0x01d84676 in ___forwarding___
#3 0x01d606c2 in __forwarding_prep_0___
#4 0x01c618b6 in -[NSFetchedResultsController(PrivateMethods) _managedOb...
Hi,
I am trying to read a file and the error i get is
java.io.FileNotFoundException: /homes/at1106/fourthYearComputing/Induvidual-Project/svn-workspace/trunk/Induvidual_Project/src/game/player/gametheoryagent/configurations/gameTheoryAgentConfiguration.properties (No such file or directory)
at java.io.FileInputStream.open(Nat...
Looking for experiences others might have had. Or JMS spec citations, if you've got them.
Our typical practice when handling a JMSException (in a try/catch or onException() method) is to fully tear down the existing JMS connection/sessions/... and reinitialize them.
A developer asked if we were being too pessimistic. Are there cases ...
Hi,
I have a Qt application that I compile in release configuration, run, and then perform operation X in the program. Everything runs fine.
I then compile it in debug configuration, run without debugging (so CTRL+F5), perform operation X in the program. Everything still runs dandy fine.
But when I try to run the debug configuration w...
I would like the users of my android app to have the option to email me the stacktrace of any uncaught exception that crashes my app. Originally I thought I would just wrap every entry point to my app in a try/catch block, but there are far too many of these even in my tiny app for this to be reasonable.
So what I am really looking for...
Hi,
I have somewhat unconventional use of exceptions in my app. If an exception happens in the method, I pass it as a part of the result object, smth like this:
pubic class MethodResponse
{
public List<Exception> Errors {get; set;}
public int SomeResult {get; set;}
}
Now, I'm separating Business layer and UI layer using WCF, and ...
Is it considered bad practice to structure the code like this?
public void whatever() {
try {
methodThatMayThrowIOException();
} catch(IOException io) {
// do something with exception here
}
// do more stuff here that won't throw exceptions
try {
methodThatMayThrowCustomException();
} catch(CustomExcep...
I get the following error when I run a java program:
Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cPingDatabase
at oracle.jdbc.driver.T2CConnection.t2cPingDatabase(Native Method)
at oracle.jdbc.driver.T2CConnection.doPingDatabase(T2CConnection.java:503)
at oracle.jdbc.driver.PhysicalConnection.pin...
I want find out as much as I can about any error that occurs on my ColdFusion page. Then, I want to save the information in a database. I am attempting to find a list of all the different properties contained in the exception object (which is a parameter of the OnError method), and I can't seem to find an exhaustive list. The list on the...
Maybe, it's a bit silly, but does anybody thought about adding exceptions to Codeigniter Config Class(Library).
Not sure, it is(will be) a good practice, but i suppose throwing an exception instead of just returning false is better.
For example, if we have something connected with user payments.
Usually(?), we'll take some configurable ...
Possible Duplicate:
Determining exception type after the exception is caught?
Following up on this question , I'd like to print out the current exception in a catch(...) block -- just for logging. One answer there says that there is no standard way of doing this, but I don't like taking no for an answer :-)
current_exception...