User space error handler
It is normally recommended to wrap all handlers used on the Rox platform (setCustomProperty
, impressionHandler
, ConfigurationFetchedHandler
, dynamicPropertyRuleHandler
) with try-catch in order to be in the right context in case of an error.
Hoever, there is a fallback handler called Rox.setUserspaceUnhandledErrorHandler
, which can be used for debugging, or for further error handling.
An Error thrown within this handler will be written to a log, and will not bubble up.
If no setUserspaceUnhandledErrorHandler
is set, the default behavior will be writing all uncaught errors to the log.
Refer to the handler parameters below for more details.
User space error handler is only avaibale on SDKs version 5 or later. |
-
trigger - which handler raise the error, one of the following strings:
-
DYNAMIC_PROPERTIES_RULE
-
CONFIGURATION_FETCHED_HANDLER
-
IMPRESSION_HANDLER
-
CUSTOM_PROPERTY_GENERATOR
-
-
error - the error raised from the handler
React Native | JavaScript | Node.js | .NET |
---|---|---|---|
|
|
|
|