Exception.ToString();
And never use
Exception.Message
The first snippet of code gives you more information about the exception like Stack trace, Inner exception and Message.
If you only log Exception.Message, you'll only have something like "Object reference not set to an instance of an object".
No comments:
Post a Comment