The setCustomData() function helps you to debug and fix errors easily.

Syntax

atatus.setCustomData(custom_object)

Parameter

Example

You can pass the custom data object to the config call() as follows.
The setCustomData() can be set as follows.
You can pass custom data as a second paramter during a notify call. This lets you send variables from catch blocks.
Custom data cannot be searched. If you want to search for a particular error, then use tags.