API Reference > Functions > SDAI > sdaiErrorQuery Function
sdaiErrorQuery Function
Syntax
C++
DAI_EXPORT SdaiErrorCode sdaiErrorQuery();

sdai.h

The error code of the most recent function that executed unsuccessfully.

The Error Query function that returns the error code of the most recently unsuccessfully called SDAI function.

After returning the error code, subsequent calls of the Error Query function returns the sdaiNO_ERR value until another SDAI function finishes with an error. If no SDAI session is not started the function returns the sdaiSS_NOPN (no SDAI session is open) value.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.