{ "html": "
\n

Installation

\n

A NuGet Package is\navailable for SharpRaven if you don’t want to compile it yourself.

\n

Instantiate the client with your DSN:

\n
var ravenClient = new RavenClient("___DSN___");\n
\n
\n
\n\n\n
\n

Capturing Exceptions

\n

Call out to the client in your catch block:

\n
try\n{\n    int i2 = 0;\n    int i = 10 / i2;\n}\ncatch (Exception exception)\n{\n    ravenClient.Capture(new SentryEvent(exception));\n}\n
\n
\n
\n", "link": "https://docs.getsentry.com/platforms/dotnet/", "id": "dotnet", "name": ".NET" }