IReporter.php 471 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Support\CrashReport;
  8. use Exception;
  9. use Throwable;
  10. /**
  11. * @since 13.0.0
  12. */
  13. interface IReporter {
  14. /**
  15. * Report an (unhandled) exception
  16. *
  17. * @since 13.0.0
  18. * @param Exception|Throwable $exception
  19. * @param array $context
  20. */
  21. public function report($exception, array $context = []);
  22. }