Search found 12 matches
- Sat Sep 12, 2020 8:27 am
- Forum: madExcept
- Topic: Nested Exception
- Replies: 17
- Views: 18350
Re: Nested Exception
Let me explain with an example Here are exception classes I'm going to use: ESQLException = class(ExceptionFields) public constructor Create(const Msg, SQL: string); overload; constructor Create(AExceptObject: TObject; const SQL: string); overload; end; constructor ESQLException.Create(const Msg, SQ...
- Sat Sep 12, 2020 4:49 am
- Forum: madExcept
- Topic: Nested Exception
- Replies: 17
- Views: 18350
Re: Nested Exception
Hi! I would like to join this old descussion to add a case that explaines why I do need innerExceptions So I have an exception class ExceptionFields that contains a set of field-value pairs that I add to bug report. This happens in the code that is called indirectly from exception handler that I reg...
- Sat Nov 06, 2010 2:07 pm
- Forum: madExcept
- Topic: Create COM objects from error handlers
- Replies: 2
- Views: 2592
Create COM objects from error handlers
I registered error handler by this way:
RegisterExceptionHandler(MainExceptionHandler, stTrySyncCallOnSuccess);
And then I'm trying to create COM object from MainExceptionHandler. But I get error with code 8001010D.
Is there suggestions how to avoid this error?
Thank you!
RegisterExceptionHandler(MainExceptionHandler, stTrySyncCallOnSuccess);
And then I'm trying to create COM object from MainExceptionHandler. But I get error with code 8001010D.
Is there suggestions how to avoid this error?
Thank you!
- Mon Aug 02, 2010 8:19 am
- Forum: madExcept
- Topic: How add my content into stacktrace?
- Replies: 3
- Views: 3906
Hi! I have try to register exceptions handler with epCompleteReport parameter, but I still have troubles. When I try to get BugReport as string (to save its in file) my application hang: StoreBugReportToFile(ReportPath + cReportFile, exceptIntf.BugReport); Application is freeze on exceptIntf.BugRepo...
- Fri Jun 25, 2010 8:21 am
- Forum: madExcept
- Topic: command line compilation: line numbers
- Replies: 8
- Views: 5591
- Fri Jun 25, 2010 4:50 am
- Forum: madExcept
- Topic: command line compilation: line numbers
- Replies: 8
- Views: 5591
- Thu Jun 24, 2010 8:20 pm
- Forum: madExcept
- Topic: command line compilation: line numbers
- Replies: 8
- Views: 5591
- Mon Jun 21, 2010 10:26 am
- Forum: madExcept
- Topic: command line compilation: line numbers
- Replies: 8
- Views: 5591
- Fri Jun 18, 2010 8:54 pm
- Forum: madExcept
- Topic: How add my content into stacktrace?
- Replies: 3
- Views: 3906
The purpose is implementation exceptions wich takes the cause of exception in constructor. Its just like Throwable in Java ( http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html#Throwable(java.lang.Throwable) ). So I have write EChainException: EChainException = class(Exception) private FC...
- Tue Jun 15, 2010 8:17 am
- Forum: madExcept
- Topic: How add my content into stacktrace?
- Replies: 3
- Views: 3906
How add my content into stacktrace?
hi! I need to find in IMEException trace of stack of thread in which error is occure and add several lines into. I have try this: const CurThreadStackItem = 0; var CE: EChainException; Header: string; StackContent: string; begin CE := exceptIntf.ExceptObject as EChainException; if CE.Cause <> '' the...
- Tue Jun 15, 2010 5:49 am
- Forum: madExcept
- Topic: command line compilation: line numbers
- Replies: 8
- Views: 5591
command line compilation: line numbers
Hi! I compile my delphi project from command line using -gd directive and madExceptPatch.exe. But bugreports is not contain line numbers. If I compile the same project from IDE with the same .mes file I can see line numbers. So I can assume that line numbers can be received in both cases. What I sho...
- Tue Oct 27, 2009 8:59 pm
- Forum: madExcept
- Topic: When my Except Action Handler will fired?
- Replies: 1
- Views: 2674
When my Except Action Handler will fired?
Hi! I just ask to be shure. I want to send the error reports directly to database (if is possible). So, lets imagine my code. First of all, I need to write and register handler: procedure MainExceptionActionHandler(Action: TExceptAction; const ExceptIntf: IMEException; var Handled: boolean); begin i...