From 31c7bdf420e78f781e46f406b02e5510563e54fc Mon Sep 17 00:00:00 2001 From: Constantin Graf Date: Mon, 29 Apr 2024 18:46:40 +0200 Subject: [PATCH] Deactivate reporting for api exceptions --- app/Exceptions/Api/ApiException.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Exceptions/Api/ApiException.php b/app/Exceptions/Api/ApiException.php index e68bcc50..6d2011cc 100644 --- a/app/Exceptions/Api/ApiException.php +++ b/app/Exceptions/Api/ApiException.php @@ -47,4 +47,14 @@ abstract class ApiException extends Exception { return __('exceptions.api.'.$this->getKey()); } + + /** + * Report the exception. + * + * @return bool true means the exception handler will not report it again + */ + public function report(): bool + { + return true; + } }