fuchsia.exception

PROTOCOLS

Handler

Defined in fuchsia.exception/handler.fidl

Protocol meant for clients interested in handling exceptions for a particular service.

OnException

This exception mirrors closely the information provided by exception channels. The design is to have clients of this API behave as closely as possible to native exception handlers that are listening to an exception channel.

exception is an exception handle, which controls the exception's lifetime. See exception zircon docs for more information.

info represents basic exception information as provided by the exception channel.

Request

NameType
exception handle<exception>
info ExceptionInfo

Response

NameType

STRUCTS

ExceptionInfo

Defined in fuchsia.exception/handler.fidl

Basic exception information associated with a particular exception. Maps to zx_exception_info_t.

NameTypeDescriptionDefault
process_koid uint64 No default
thread_koid uint64 No default
type ExceptionType No default

ENUMS

ExceptionType

Type: uint32

Defined in fuchsia.exception/handler.fidl

What type of exception was triggered. Maps to the types defined in zx_excp_type_t. If zircon/syscalls/exception.h changes, this needs to be updates as well to reflect that.

NameValueDescription
GENERAL 8
FATAL_PAGE_FAULT 264
UNDEFINED_INSTRUCTION 520
SW_BREAKPOINT 776
HW_BREAKPOINT 1032
UNALIGNED_ACCESS 1288
THREAD_STARTING 32776
THREAD_EXITING 33032
POLICY_ERROR 33288
PROCESS_STARTING 33544