#[repr(i32)]pub enum ExceptionType {
Show 13 variants
BadAccess = 1,
BadInstruction = 2,
Arithmetic = 3,
Emulation = 4,
Software = 5,
Breakpoint = 6,
SysCall = 7,
MachSysCall = 8,
RpcAlert = 9,
Crash = 10,
Resource = 11,
Guard = 12,
CorpseNotify = 13,
}Expand description
High level exception types
exception_types.h
Variants§
BadAccess = 1
Could not access memory. (SIGSEGV/SIGBUS)
Code field contains kern_return_t describing error.
Subcode field contains bad memory address.
BadInstruction = 2
Instruction failed. (SIGILL)
Illegal or undfined instruction or operand.
Arithmetic = 3
Arithmetic exception (SIGFPE)
Exact nature of the exception is in code field.
Emulation = 4
Emulation instruction
Emulation support instruction encountered Details in code and subcode fields.
Software = 5
Software generated exception
Exaction exception is in the code field. Codes 0 - 0xffff reserved to hardware. Codes 0x10000 - 0x1ffff reserved for OS emulation (Unix)
Breakpoint = 6
Trace, breakpoint, etc
Details in the code field
SysCall = 7
System calls
MachSysCall = 8
Mach system calls
RpcAlert = 9
RPC alert
Crash = 10
Abnormal process exit
Resource = 11
Hit resource consumption limit
Exact resource is in the code field.
Guard = 12
Violated guarded resource protections
CorpseNotify = 13
Abnormal process exited to corpse state