---
title: thread_adopt_exception_handler
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 15.0+]
path: kernel/4360032-thread_adopt_exception_handler
---

# thread_adopt_exception_handler

## Declaration

```occ
kern_return_t thread_adopt_exception_handler(thread_t thread, mach_port_t exc_port, exception_mask_t exc_mask, exception_behavior_t behavior_mask, thread_state_flavor_t flavor_mask);
```
