Red Gate forums :: View topic - Send additional data in reported execption
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Send additional data in reported execption

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
gordan



Joined: 20 Jan 2012
Posts: 4

PostPosted: Fri Jan 20, 2012 1:03 pm    Post subject: Send additional data in reported execption Reply with quote

I’m using SmartAssembly custom error reporting feature to report exceptions to my server. I’m having the following code snippet:

Code:
catch(Exception ex)
            {
                ex.Data.Add("some Info", msg);
                ex.Data.Add("info2",”data2”);
                ex.Data.Add("info3", “data3”);
                SmartAssembly.ReportException.ExceptionReporting.Report(exception);
            }


When I try to read an exception from SmartAssembly error viewer the custom data added to the exception cannot be found!

How can I implement correctly some custom data in the error reporting?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group