Skip to content

Commit f3a0dac

Browse files
Add callout to lifecycle hooks to cross-link to error handling docs (#2058)
* Updateded the models.md file * Fixed grammar
1 parent 9c8a89f commit f3a0dac

File tree

1 file changed

+4
-0
lines changed
  • docusaurus/docs/dev-docs/backend-customization

1 file changed

+4
-0
lines changed

docusaurus/docs/dev-docs/backend-customization/models.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,10 @@ Lifecycle hooks can be customized declaratively or programmatically.
619619
Lifecycles hooks are not triggered when using directly the [knex](https://knexjs.org/) library instead of Strapi functions.
620620
:::
621621

622+
:::tip
623+
Please refer to the [error handling](/dev-docs/error-handling#services-and-models-lifecycles) documentation to learn how to throw errors from lifecycle hooks.
624+
:::
625+
622626
### Available lifecycle events
623627

624628
The following lifecycle events are available:

0 commit comments

Comments
 (0)