Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
Signed-off-by: bidi <[email protected]>
  • Loading branch information
bidi47 committed Nov 18, 2024
1 parent 95b2fd9 commit 4942f4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/book/v5/core-features/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Below we will list the available custom exceptions.
### `ExpiredException` thrown when

* The **resource cannot be accessed**
* because it has **expired** (example: account activation link)
* because it has been **consumed** (example: one-time password)
* because it has **expired** (example: account activation link)
* because it has been **consumed** (example: one-time password)

### `ForbiddenException` thrown when

Expand Down Expand Up @@ -59,6 +59,7 @@ Otherwise, it will build and send a response based on the exception thrown:
## How to extend

In this example we will

* Create a custom exception called `CustomException`
* Place it next to the already existing custom exceptions (you can use your preferred location)
* Return a custom HTTP status code when `CustomException` is encountered.
Expand Down

0 comments on commit 4942f4d

Please sign in to comment.