Suppress reporting for expected API exceptions

This commit is contained in:
Constantin Graf
2026-08-31 11:14:23 +02:00
parent 28aba7b27a
commit ba778bdddf
22 changed files with 194 additions and 1 deletions

View File

@@ -7,4 +7,14 @@ namespace App\Exceptions\Api;
class TimeEntryStillRunningApiException extends ApiException
{
public const string KEY = 'time_entry_still_running';
/**
* Report the exception.
*
* @return bool true means the exception handler will not report it again
*/
public function report(): bool
{
return true;
}
}