blob: fb36bbb2cad047d34ab3fca12cb290973217e70d [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library zx;
[Transport = "Syscall"]
protocol exception {
/// Create a handle for the exception's thread.
/// Rights: handle must be of type ZX_OBJ_TYPE_EXCEPTION.
exception_get_thread(handle<exception> handle) -> (status status, handle<thread> out);
/// Create a handle for the exception's process.
/// Rights: handle must be of type ZX_OBJ_TYPE_EXCEPTION.
exception_get_process(handle<exception> handle) -> (status status, handle<process> out);
};