reportError(errorMsg, errorObj, context)
Saves the error information in the Redux Store. This is applicable to all errors that need to be handled at the infrastructure level.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
errorMsg | string | The error message to be logged to Redux Store. | ✅ |
errorObj | object | The error object that contains information about the error. | ✅ |
context | string | The path in the Redux store where you want to save the error information. | ✅ |
Usage example
In this example, the error message is stored in the Redux Store.
getPConnect().reportError(
': Error ocurred during ajax call at fetchMessages API :',
{
errorClassification: 'Invalid inputs'
errorDetails: {
localizedValue: 'localized error message'
}
}
);
Previous topic replaceState(prop, value) Next topic resolveConfigProps(configProps, destinationObject)