I have a custom exception class, inherited from Exception
and a console application where the exception is thrown. My custom exception overrides the ToString()
method, but when the exception is thrown, the message and stack trace print to console, but the overridden ToString()
method does not seem to be called.
I know how to create a default exception handler (.NET Global exception handler in console application). However, what is the body of the default handler for console application if the custom one is not specified?