diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 16:28:04 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 16:28:04 +0300 |
commit | ad757805ca3c6556dd912881d5469b97b1f66171 (patch) | |
tree | a24946c1eef99ed6ddf36293a4551e1710c95533 /lib/public/Support | |
parent | 2a39ac043e1bcb42111e7f442814d6f11522365b (diff) |
Pass the exception context to the crash reporter
This should allow better reports as often the app id is passed
as context. While this is not used right now, I'd like to have this
for NC13 as adding it later will break the interface for existing apps
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Support')
-rw-r--r-- | lib/public/Support/CrashReport/IRegistry.php | 3 | ||||
-rw-r--r-- | lib/public/Support/CrashReport/IReporter.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/Support/CrashReport/IRegistry.php b/lib/public/Support/CrashReport/IRegistry.php index 66c527092bb..62432c782ab 100644 --- a/lib/public/Support/CrashReport/IRegistry.php +++ b/lib/public/Support/CrashReport/IRegistry.php @@ -43,6 +43,7 @@ interface IRegistry { * * @since 13.0.0 * @param Exception|Throwable $exception + * @param array $context */ - public function delegateReport($exception); + public function delegateReport($exception, array $context = []); } diff --git a/lib/public/Support/CrashReport/IReporter.php b/lib/public/Support/CrashReport/IReporter.php index 03c4f47e3b2..4700f275df4 100644 --- a/lib/public/Support/CrashReport/IReporter.php +++ b/lib/public/Support/CrashReport/IReporter.php @@ -35,6 +35,7 @@ interface IReporter { * * @since 13.0.0 * @param Exception|Throwable $exception + * @param array $context */ - public function report($exception); + public function report($exception, array $context = []); } |