aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Support/CrashReport/IReporter.php
blob: 1be8ba58c301f2d5404406447c38c98a0e45f5e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\Support\CrashReport;

use Exception;
use Throwable;

/**
 * @since 13.0.0
 */
interface IReporter {
	/**
	 * Report an (unhandled) exception
	 *
	 * @since 13.0.0
	 * @param Exception|Throwable $exception
	 * @param array $context
	 */
	public function report($exception, array $context = []);
}