Ignoring Exceptions
You can ignore exceptions by their type when initializing the SDK:
Copied
// Add this to the SDK initialization callback
options.AddExceptionFilterForType<OperationCanceledException>();
It works in the whole inheritance chain. The example above will also filter out TaskCanceledException
because it derives from OperationCanceledException
.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
- Package:
- nuget:Sentry.Xamarin
- Version:
- 2.0.0
- Repository:
- https://github.com/getsentry/sentry-xamarin