aclrtPeekAtLastError
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Obtains (but does not clear) the runtime error code of the current thread.
Prototype
1
|
aclError aclrtPeekAtLastError(aclrtLastErrLevel level) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
level |
Input |
Level of the error code to be obtained. Currently, only the thread level is supported. For details about the type definition, see aclrtLastErrLevel. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: Exception Handling