Deactivate reporting for api exceptions

This commit is contained in:
Constantin Graf
2024-04-29 18:46:40 +02:00
committed by Constantin Graf
parent a4667589f2
commit 31c7bdf420

View File

@@ -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;
}
}