Functions
dhdError.cpp File Reference

SDK error mangagement documentation. More...

Functions

int __SDK dhdErrorGetLast ()
 
const char *__SDK dhdErrorGetLastStr ()
 
const char *__SDK dhdErrorGetStr (int error)
 

Detailed Description

SDK error mangagement documentation.

Function Documentation

◆ dhdErrorGetLast()

int __SDK dhdErrorGetLast ( )

Returns the last error code encountered in the running thread. See error management for details.

Returns
The last error code encountered in the running thread.
See also
dhdErrorGetStr ()

◆ dhdErrorGetLastStr()

const char* __SDK dhdErrorGetLastStr ( )

Returns a brief string describing the last error encountered in the running thread. See error management for details.

Returns
A pointer to a character array.
See also
dhdErrorGetStr ()
Examples
constraints.cpp, encoders.cpp, gravity.cpp, hold.cpp, jacobian.cpp, multithread.cpp, segment.cpp, sphere.cpp, teleoperation.cpp, torques.cpp, torus.cpp, and transformations.cpp.

◆ dhdErrorGetStr()

const char* __SDK dhdErrorGetStr ( int  error)

Returns a brief string describing a given error code. See error management for details.

Parameters
errorerror code
Returns
A pointer to a character array.
See also
dhdErrorGetLastStr ()