I am using the jan 2006 and as far as i can see the TextExceptionFormatter does not write out the inner exceptions.
All i want to do is iterate through the inner exceptions of an exception and output them. I am confused why i need to write a custom exception handler and why i cant just write a custom Formatter. It is probably based on preconceptions i have that
are wrong so i should explain them i think.
I believe the HandleException method of the exception handler class does something like this (in pseudocode)
public HandleException(Exception exception)
//Create log entry and set properties
LogEntry logEntry = new LogEntry();
logEntry.Message = TheExceptionFormatter.Format(exception) <===========MY FORMAT method would be called here
logEntry.ExtendedProperties = dictionary;
foreach (DictionaryEntry dataEntry in exception.Data)
if (dataEntry.Key is string)
log.ExtendedProperties.Add(dataEntry.Key as string,
If the exception formatter used in configurable then if i write a custom formatter with a format method that outputs
the inner exception details of the exception pased into it then the format method of that class would be
called where i have indicated above.
Does that make sense? I don't see why i would have to write a custom exception handler if the existing exception
handler has a configurable ExceptionFormatter and i could simply write a subclass that overrides the format method
and then this format method would be called by virtue of polymorphism.
I expeect its my understanding of how the exception handler works that is the problem