How would you compare MadExcept to EurekaLog as an Exception handler for your Delphi application?
Why would you pick one over the other?
Are there any other exception handlers for Delphi that should be considered in addition to these two?
Well the answer was between Smasher and Mark, who both had good info in their comparisons but e...
On Python 2.5 I need to use float numbers with a modified __str__() method. Also I need to know when the constructor fails.
Why I can't catch exceptions raised from float.__init__()?
What is the best way to consult the numeric value of my derived float object? In my code I'm using float(self).
class My_Number(float):
def __init__(...
hi,
I'd like to get an email when an error or exception happen in my web application, so that i can do the fix quickly.I've set a JSP error page. I like to show the error page to the client and at the same time get an email. I use jsp and a corresponding servlet and controller for each jsp.
How can i call the servlet to send email whe...
There are certain areas in your code that you don't want the program execution to stop, like say during a checkout at a ecomm store.
I was thinking of creating a special 'return' type that looks like:
public bool SpecialReturn
{
public bool IsSucess {get;set;}
public List Messages {get;set;}
}
I could put an enum there to ret...
Hi,
Is there anyway to catch all uncaught exceptions in a MFC VC++ 2008 application? Is there something like this Java code:
Thread.currentThread().setUncaughtExceptionHandler(
new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
System.out.println("Oops! We have a exception in Thread...
can i get handlingInstanceId without using custom handlers (i'm using standard handlers).
...
I'm trying to use exceptions in PHP as a way of avoiding multiple if-then-else blocks. However, when I try to catch the exception, I get the error Parse error: syntax error, unexpected T_CATCH in /directory/functions.php on line 66. Am I doing something wrong with my throwing and catching?
function doThis($sSchool, $sDivision, $sClass, ...
hi i am configuring struts.xml with <global-exception-mappings>
but i would like to return the exception stack according to ajax/xmlhttprequest type or typical one
thus:
if request is typical ordinal http request, and exception thrown to struts -> response html
if request is ajax/xmlhttprequest (and expecting json) -> response json
...
Hello,
I'm performing dynamic webservices call using following code snippet:
JAXBContext jc = getJAXBContext(requestClass, responseClass, jaxbContextExtraClasses);
Dispatch<Object> dispatch = service.createDispatch(portQName, jc, Service.Mode.PAYLOAD);
Object requestValue = getRequestValue(requestClass, pOrderedParameters...
Hi
I am using WCF RIA Services VS2008/.NET 3.5 and trying to do exception handling. I have overridden OnError method of DomainService and doing my exception handling in that method. I am trying to throw Business Rule Exceptions or Database Exceptions to client in some form so that client recognizes them and handles them differently.
Th...
When the WCF service is turned off, I'm gonna catch this exception like this.
public List<ProjektyEntity> GetProjekty()
{
try
{
return this.channel.GetProjekty();
}
catch (EndpointNotFoundException exception)
{
//what to do at this point ?
}
}
But i don't know what t...
I need to handle the ORA-01400 error (cannot insert NULL into ("SCHEMA"."TABLE_NAME"."COLUMN_NAME") ) using a exception handle.
ORACLE Predefine a few Exceptions like (ACCESS_INTO_NULL, ZERO_DIVIDE and so on), but apparently does not define an Exception for the ORA-01400 error, how do I handle this particular error code?
I need someth...
I'm relatively new to C# and .NET and I'm trying to learn how to better handle exceptions in my code.
Take the following function I've written for example:
public void SendEmail(string SenderEmail, string SenderDisplayName, IEnumerable<string> RecipientEmails, string Subject, string Message)
{
MailMessage message = new Ma...
I'm reading a book on Windows Internals and there's something I don't understand:
"The kernel handles software interrupts either as part of hardware interrupt handling or synchronously when a thread invokes kernel functions related to the software interrupt."
So does this mean that software interrupts or exceptions will only be handled...
On a recent project I recommended catching a RuntimeException within a test harness code and logging it. The code processes a series of inputs from a database and I do not want the test to stop due to failure of any one input (Null values, Illegal arguments etc). Needless to say, my suggestion triggered a passionate discussion.
Is catc...
I've got a GUI client which is running against a WCF services hosted as a Windows service on a server box. The WCF service is running in PerCall InstanceContextMode, and the client has a singleton instance of the service client and I want to avoid reinstantiating the singleton on every call as it makes life difficult for the many asynchr...
I'm considering using the /EHa compiler switch when building in Debug and Release. I'm using a bunch of 3rd party static libraries and DLLs, which I'm assuming didn't get compiled with /EHa. Will I be running into any problems?
...
Hi all,
I know how to use try...catch block in c#. Also know why it is using. but what is exact meaning of Exception handling ? see once i write the try {}.. Catch{} i handled null exception then what should happen? what are the standard for exception handling. means what should happen is normally expected if exception occur ?
...
How to identify the line nr. where the exception has occured and show a piece of code around the exception?
I would like to implement a custom exception handler page which would display the stack trace, and I'm looking for the easiest way to accomplish the above. While most of the information is available through the Exception object, t...
Hello there,
I'm creating an application that installs 3 Record Stores for the first run. Then on it has to work with the already installed values. The application works fine during the first run both in the emulator and in a mobile. But the second time run shows a null pointer exception after my splash screen loads. After the splash scr...