Skip to content

Commit

Permalink
Update error-handling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stramunin committed Jul 12, 2023
1 parent f8168b0 commit 7c639e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v4/middleware/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ The base class `HttpSpecializedException` extends `Exception` and comes with the

You can extend the `HttpSpecializedException` class if they need any other response codes that we decide not to provide with the base repository. Example if you wanted a 504 gateway timeout exception that behaves like the native ones you would do the following:
```php
class HttpForbiddenException extends HttpSpecializedException
class HttpGatewayTimeoutException extends HttpSpecializedException
{
protected $code = 504;
protected $message = 'Gateway Timeout.';
Expand Down

0 comments on commit 7c639e0

Please sign in to comment.