zx_exception_get_thread
Summary
Create a handle for the exception's thread.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_exception_get_thread(zx_handle_t handle, zx_handle_t* out);
Description
handle is the exception handle.
out will be filled with a new handle to the exception thread. This handle
will have the same rights as the task given to
zx_task_create_exception_channel()
.
Rights
handle must be of type ZX_OBJ_TYPE_EXCEPTION
.
Return value
zx_exception_get_thread()
returns ZX_OK
on success.
In the event of failure, a negative error value is returned.
Errors
ZX_ERR_BAD_HANDLE
handle is not a valid handle.
ZX_ERR_NO_MEMORY
Failed to allocate memory for a new handle.
ZX_ERR_WRONG_TYPE
handle is not an exception.
See also
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-12-13 UTC."],[],[]]