The clscrs_get_error_details API retrieves and returns the clsk exception stack if there are any failures while invoking other CLSCRS APIs.
Note:
The caller is responsible for allocating memory for error_buf.
Input:
error_buf: The buffer that will be populated with the error stack.buf_size: The size of the buffer for error_buf. If the size of the buffer given is smaller than what is required, then the API returns a value for the necessary buffer size.