We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd191b commit a5158e6Copy full SHA for a5158e6
error_reporting/api/report_exception.py
@@ -15,6 +15,7 @@
15
16
# [START error_reporting]
17
# [START error_reporting_quickstart]
18
+# [START error_reporting_setup_python]
19
def simulate_error():
20
from google.cloud import error_reporting
21
@@ -24,16 +25,19 @@ def simulate_error():
24
25
raise NameError
26
except Exception:
27
client.report_exception()
28
+# [END error_reporting_setup_python]
29
# [END error_reporting_quickstart]
30
# [END error_reporting]
31
32
33
# [START error_reporting_manual]
34
+# [START error_reporting_setup_python_manual]
35
def report_manual_error():
36
37
38
client = error_reporting.Client()
39
client.report("An error has occurred.")
40
41
# [END error_reporting_manual]
42
43
0 commit comments