Suppress reporting for expected API exceptions

This commit is contained in:
Constantin Graf
2026-08-31 11:14:23 +02:00
committed by Gregor Vostrak
parent e6f071f87f
commit 38b448a729
22 changed files with 194 additions and 1 deletions

View File

@@ -19,6 +19,16 @@ class EntityStillInUseApiException extends ApiException
public const string KEY = 'entity_still_in_use';
/**
* Report the exception.
*
* @return bool true means the exception handler will not report it again
*/
public function report(): bool
{
return true;
}
/**
* Get the translated message for the exception.
*/