#include <mach/exception_types.h> also included by <mach/mach.h>

mach/exception_types.h

40 macros · 14 typedefs

macroEXC_BAD_ACCESS

#define EXC_BAD_ACCESS 1
Could not access memory

macroEXC_BAD_INSTRUCTION

#define EXC_BAD_INSTRUCTION 2
Instruction failed

macroEXC_ARITHMETIC

#define EXC_ARITHMETIC 3
Arithmetic exception

macroEXC_EMULATION

#define EXC_EMULATION 4
Emulation instruction

macroEXC_SOFTWARE

#define EXC_SOFTWARE 5
Software generated exception

macroEXC_BREAKPOINT

#define EXC_BREAKPOINT 6
Trace, breakpoint, etc.

macroEXC_SYSCALL

#define EXC_SYSCALL 7
System calls.

macroEXC_MACH_SYSCALL

#define EXC_MACH_SYSCALL 8
Mach system calls.

macroEXC_RPC_ALERT

#define EXC_RPC_ALERT 9
RPC alert

macroEXC_CRASH

#define EXC_CRASH 10
Abnormal process exit

macroEXC_RESOURCE

#define EXC_RESOURCE 11
Hit resource consumption limit

macroEXC_GUARD

#define EXC_GUARD 12
Violated guarded resource protections

macroEXC_CORPSE_NOTIFY

#define EXC_CORPSE_NOTIFY 13
Abnormal process exited to corpse state

macroEXCEPTION_DEFAULT

#define EXCEPTION_DEFAULT 1
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise message including the thread identity.

macroEXCEPTION_STATE

#define EXCEPTION_STATE 2
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state message including the thread state.

macroEXCEPTION_STATE_IDENTITY

#define EXCEPTION_STATE_IDENTITY 3
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state_identity message including the thread identity and state.

macroEXCEPTION_IDENTITY_PROTECTED

#define EXCEPTION_IDENTITY_PROTECTED 4

macroEXCEPTION_STATE_IDENTITY_PROTECTED

#define EXCEPTION_STATE_IDENTITY_PROTECTED 5
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state_identity message including the thread identity and state. Mark the exception port (and associated exceptions) as protected.

macroMACH_EXCEPTION_BACKTRACE_PREFERRED

#define MACH_EXCEPTION_BACKTRACE_PREFERRED 0x20000000

macroMACH_EXCEPTION_ERRORS

#define MACH_EXCEPTION_ERRORS 0x40000000

macroMACH_EXCEPTION_CODES

#define MACH_EXCEPTION_CODES 0x80000000

macroEXC_MASK_BAD_ACCESS

#define EXC_MASK_BAD_ACCESS (1 << EXC_BAD_ACCESS)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Could not access memory.
a value of exception_mask_t

macroEXC_MASK_BAD_INSTRUCTION

#define EXC_MASK_BAD_INSTRUCTION (1 << EXC_BAD_INSTRUCTION)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Instruction failed. Illegal or undefined instruction or operand.
a value of exception_mask_t

macroEXC_MASK_ARITHMETIC

#define EXC_MASK_ARITHMETIC (1 << EXC_ARITHMETIC)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Arithmetic exception
a value of exception_mask_t

macroEXC_MASK_EMULATION

#define EXC_MASK_EMULATION (1 << EXC_EMULATION)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Emulation instruction. Emulation support instruction encountered.
a value of exception_mask_t

macroEXC_MASK_SOFTWARE

#define EXC_MASK_SOFTWARE (1 << EXC_SOFTWARE)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Software generated exception.
a value of exception_mask_t

macroEXC_MASK_BREAKPOINT

#define EXC_MASK_BREAKPOINT (1 << EXC_BREAKPOINT)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Trace, breakpoint, etc.
a value of exception_mask_t

macroEXC_MASK_SYSCALL

#define EXC_MASK_SYSCALL (1 << EXC_SYSCALL)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
System call requested.
a value of exception_mask_t

macroEXC_MASK_MACH_SYSCALL

#define EXC_MASK_MACH_SYSCALL (1 << EXC_MACH_SYSCALL)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
System call with a number in the Mach call range requested.
a value of exception_mask_t

macroEXC_MASK_RPC_ALERT

#define EXC_MASK_RPC_ALERT (1 << EXC_RPC_ALERT)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Exceptional condition encountered during execution of RPC.
a value of exception_mask_t

macroEXC_MASK_CRASH

#define EXC_MASK_CRASH (1 << EXC_CRASH)

macroEXC_MASK_RESOURCE

#define EXC_MASK_RESOURCE (1 << EXC_RESOURCE)

macroEXC_MASK_GUARD

#define EXC_MASK_GUARD (1 << EXC_GUARD)

macroEXC_MASK_CORPSE_NOTIFY

#define EXC_MASK_CORPSE_NOTIFY (1 << EXC_CORPSE_NOTIFY)

macroFIRST_EXCEPTION

#define FIRST_EXCEPTION 1
ZERO is illegal

macroEXC_SOFT_SIGNAL

Machine independent codes for EXC_SOFTWARE Codes 0x10000 - 0x1FFFF reserved for OS emulation (Unix) 0x10000 - 0x10002 in use for unix signals 0x20000 - 0x2FFFF reserved for MACF
#define EXC_SOFT_SIGNAL 0x10003
Unix signal exceptions

macroEXC_MACF_MIN

#define EXC_MACF_MIN 0x20000
MACF exceptions

macroEXC_MACF_MAX

#define EXC_MACF_MAX 0x2FFFF

typedefexception_type_t

typedef int exception_type_t

typedefexception_data_type_t

typedef integer_t exception_data_type_t

typedefmach_exception_data_type_t

typedef int64_t mach_exception_data_type_t

typedefexception_behavior_t

typedef int exception_behavior_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
EXCEPTION_DEFAULTSend a catch_exception_raise message including the thread identity.
EXCEPTION_DEFAULT_PROTECTEDSend a catch_exception_raise message including the thread identity. Mark the exception port (and associated exceptions) as protected.
EXCEPTION_STATESend a catch_exception_raise_state message including the thread state.
EXCEPTION_STATE_PROTECTEDSend a catch_exception_raise_state message including the thread state. Mark the exception port (and associated exceptions) as protected.
EXCEPTION_STATE_IDENTITYSend a catch_exception_raise_state_identity message including the thread identity and state.
EXCEPTION_STATE_IDENTITY_PROTECTEDSend a catch_exception_raise_state_identity message including the thread identity and state. Mark the exception port (and associated exceptions) as protected.

typedefexception_data_t

typedef exception_data_type_t *exception_data_t

typedefmach_exception_data_t

typedef mach_exception_data_type_t *mach_exception_data_t

typedefexception_mask_t

typedef unsigned int exception_mask_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
EXC_MASK_BAD_ACCESSCould not access memory.
EXC_MASK_BAD_INSTRUCTIONInstruction failed. Illegal or undefined instruction or operand.
EXC_MASK_ARITHMETICArithmetic exception
EXC_MASK_EMULATIONEmulation instruction. Emulation support instruction encountered.
EXC_MASK_SOFTWARESoftware generated exception.
EXC_MASK_BREAKPOINTTrace, breakpoint, etc.
EXC_MASK_SYSCALLSystem call requested.
EXC_MASK_MACH_SYSCALLSystem call with a number in the Mach call range requested.
EXC_MASK_RPC_ALERTExceptional condition encountered during execution of RPC.

typedefexception_mask_array_t

typedef exception_mask_t *exception_mask_array_t

typedefexception_behavior_array_t

typedef exception_behavior_t *exception_behavior_array_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
EXCEPTION_DEFAULTSend a catch_exception_raise message including the thread identity.
EXCEPTION_STATESend a catch_exception_raise_state message including the thread state.
EXCEPTION_STATE_IDENTITYSend a catch_exception_raise_state_identity message including the thread identity and state.

typedefexception_flavor_array_t

typedef thread_state_flavor_t *exception_flavor_array_t

typedefexception_port_array_t

typedef mach_port_t *exception_port_array_t

typedefexception_port_info_array_t

typedef ipc_info_port_t *exception_port_info_array_t

typedefmach_exception_code_t

typedef mach_exception_data_type_t mach_exception_code_t

typedefmach_exception_subcode_t

typedef mach_exception_data_type_t mach_exception_subcode_t