Feature Request
Include particular properties of custom exceptions in raygun report
Phillip Haydon
Given a scenario in .NET where a custom exception is thrown due to misconfiguration.
e.g
public class MissingUploaderApprovalServiceException : Exception
{
public int AccountId {get;set;}
....
}
I would like to see the AccountId somewhere in Raygun. Where this exception is captured by Raygun higher up the stack and can't be included as tags and such.
Raygun
John-Daniel Trask
Posted on
Jun 10 2015
This is what Exception.Data is for :-) Put anything you want in there. If we serialized entire objects the size can get crazy, especially since they frequently will reference back to a full object graph in your domain model or similar.
Can you make your custom exception add / update it on the setter?
Hope that helps!
John-Daniel Trask
Phillip Haydon
Posted on
Jun 10 2015
Ahhh awesome, Data will work fine.
However there was a second part to this I was going to add which I forgot...
I also want the ability to add tags in an exception.
i.e
Tags = new [] { "Configuration", "User" };
So that those also allow a particular exception to tag itself.