Error Handling


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

For example:

- You have reached the rate limit of your calls

- Invalid json has been submitted or the parameters are not valid

You can check the whole list of errors here:

Since larvel-notion-api version 0.6.0, we will provide you the direct message from the Notion API, in order to inform you about the according error.


If the HandlingException::class is thrown, some error or misconfiguration occured within the package.

For example:

- No valid json-string or -array is provided during property or block creation

- A parameter targeted for the Notion API is missing or not valid

{info} As a rule of thumb:
The NotionException is thrown if an error at the Notion API happens.
The HandlingException is thrown if there is a local error in the package.