# Information about errorcodes

**URL:** <https://forum.commonvisionblox.com/t/information-about-errorcodes/115>\
**Category:** C-style API\
**Created:** [May 26, 2017, 5:59am UTC](https://forum.commonvisionblox.com/t/information-about-errorcodes/115 "2017-05-26T05:59:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexproof](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hexproof](https://forum.commonvisionblox.com/u/hexproof)\
**Post date:** [May 26, 2017, 5:59am UTC](https://forum.commonvisionblox.com/t/information-about-errorcodes/115/1 "2017-05-26T05:59:46Z")

</div>

Hi Community,

I wonder if there is a way to get more precise information about the errorcodes that are returned when calling a cvb method such as G2Wait().  
I’ve seen different numbers for errors, e.g when calling G2Wait() on an image-handle, after the camera has been unplugged, the errorcode that is returned is “-2147483628”.  
I assume, that this is not just a random code, how can I get more detailed information about the error that occured?

Feel free to move this thread, if I opened it in the wrong section.

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/chris/32/1154_2.png) [@Chris](https://forum.commonvisionblox.com/u/Chris)\
**Post date:** [May 26, 2017, 6:03am UTC](https://forum.commonvisionblox.com/t/information-about-errorcodes/115/2 "2017-05-26T06:03:34Z")

</div>

Hi Peter,

:cvb: has a method to get more information about the errorcodes that were returned from a method:

cvbres\_t result = G2Wait(handle);  
auto errorCode = CVC\_ERROR\_FROM\_HRES(result)

In your case ‘errorCode’ would be 20.

Now you can take a look into the CVCError.h:

![](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/97e937ee724caefe772b1f363282e06758e44ddc.PNG)

We see: Your errorCode indicates an aborted grab, which is just what we would expect after trying to grab an image from a disconnected camera.

I hope this answer helps you, maybe one of the more advanced members has more information to add.
