Skip to content

Commit

Permalink
Deactivate reporting for api exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Apr 29, 2024
1 parent a466758 commit 31c7bdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Exceptions/Api/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@ public function getTranslatedMessage(): string
{
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;
}
}

0 comments on commit 31c7bdf

Please sign in to comment.