luxonis / depthai-core

DepthAI C++ Library
MIT License
235 stars 127 forks source link

[BUG] Catching errors #999

Closed gabrielmercado90 closed 7 months ago

gabrielmercado90 commented 7 months ago

Describe the bug I am trying to catch the error or to reconnect if the camera is disconnected due to the cable or any other error. but this method is not returning the values. is there any other way to catch this errors? and also is there a Generic error handler? o where can see all the possible errors.

I am using thet c++ API (V2.24.0)

Additional context The error handling documentation is not really clear, I would appreciate your help :3

moratom commented 7 months ago

Hi @gabrielmercado90

At the moment there is no way of getting the actual error that caused the crash/disconnect.

We plan to add it in on the next major release.

gabrielmercado90 commented 7 months ago

Ok, thank you @moratom !!