Picture of the author


Error Handling


The NotionException::class will be thrown if the Notion API throws any kind of error.

For example:

  • You have reached the rate limit of the API
  • Invalid JSON was submitted or the parameters are not valid

You can check the whole list of errors here: https://developers.notion.com/reference/errors


The HandlingException::class is thrown when some error or misconfiguration occured within the package.

For example:

  • No valid JSON or array is provided during property or block creation
  • A parameter targeted for the Notion API is missing or not valid
Resolving Entities