# register\_error\_callback
Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/register_error_callback.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/register_error_callback.html)
Registers a callback interface, `cb`, for error events. The registered callback is called when there is an error, which must be reported to the client from the sensor subsystem.
register_error_callback() Copy to clipboard
## Parameters
| Parameters | Data type | Description |
| --- | --- | --- |
| sensor\_session\_id | int | Sensor’s session ID. |
| cb | Ierror\_callback\_type | Callback function that must be triggered when an error is
reported.
Error callbacks are interfaces in the ISensorsCBs interface. The
`onValues()` method is triggered by Sensors
Manager of the QESDK for handling sensor events and errors from
the sensor subsystem; see [Error callback](https://docs.qualcomm.com/doc/80-PK177-134/topic/ierror_callback_type_onvalues.html). |
**Parent Topic:** [Sensor subsystem APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/sensor_functions.html)
Last Published: Nov 14, 2024
[Previous Topic
register\_event\_callback](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/register_event_callback.md) [Next Topic
Sensor callbacks](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/sensor_callbacks.md)