in my ASP.NET application, I am creating a new class to handle errors in my application and send them to a webservice which will save it in a table.Is there anything wrong in having a Property of type System.Exception class, in my new class ? Currently i have properties like "MethodName","ClassName","InnerException","StackTrace".When an error occurs in my app,I create an object of this class and set the properties and call the save method.Now i am thinking about eliminating the 3 properties and create a property called "Exception" of type Exception.so that i can read the exception details within that class
Is this approach really good ? Would it have any performance /memory issues than the previous method where i have 3 string properties