Error Handling

NotionException

The NotionException::class will be thrown, if the NotionApi 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: https://developers.notion.com/reference/errors


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

HandlingException

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 NotionApi is missing or not valid

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