Skip to content

Commit 23a7c30

Browse files
committed
SHOWCASE: add versioned index file
1 parent b1a47a2 commit 23a7c30

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Capturing Errors and Events
3+
description: "Learn how to use the SDK to manually capture errors and other events."
4+
sidebar_order: 4
5+
---
6+
!!Versioned index file!!
7+
8+
9+
Sentry's SDK hooks into your runtime environment and automatically reports errors, uncaught exceptions, and unhandled rejections as well as other types of errors depending on the platform.
10+
11+
<Note>
12+
13+
Key terms:
14+
15+
- An _event_ is one instance of sending data to Sentry. Generally, this data is an error or exception.
16+
- An _issue_ is a grouping of similar events.
17+
- The reporting of an event is called _capturing_.
18+
When an event is captured, it’s sent to Sentry.
19+
20+
</Note>
21+
22+
The most common form of capturing is to capture errors. What can be captured as an error varies by platform. In general, if you have something that looks like an exception, it can be captured. For some SDKs, you can also omit the argument to <PlatformIdentifier name="capture-exception" /> and Sentry will attempt to capture the current exception. It is also useful for manual reporting of errors or messages to Sentry.
23+
24+
While capturing an event, you can also record the breadcrumbs that lead up to that event. Breadcrumbs are different from events: they will not create an event in Sentry, but will be buffered until the next event is sent. Learn more about breadcrumbs in our <PlatformLink to="/enriching-events/breadcrumbs/">Breadcrumbs documentation</PlatformLink>.
25+
26+
## Capturing Errors
27+
28+
<PlatformContent includePath="capture-error" />
29+
30+
## Capturing Messages
31+
32+
Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.
33+
34+
<PlatformContent includePath="capture-message" />

0 commit comments

Comments
 (0)