EXCEPTION(2) EXCEPTION(2) NAME exception - Exception module SYNOPSIS include "exception.m"; exc := load Exception Exception->PATH; getexc: fn(pid: int): (int, string, string); setexcnotifyleader: fn(pid: int): int; setexcpropagate: fn(pid: int): int; DESCRIPTION Exception provides exception-related utility routines to read or write to system device files. Getexc returns the last exception to be raised on the pro- cess with the given process id. A process id of -1 is taken to mean the current process. The returned triple gives the pc value, the module and the exception name or 0, nil, nil if no exception has occurred. Setexcnotifyleader and setexcpropagate set 'exceptions noti- fyleader' and 'exceptions propagate' respectively on the given process. 0 is returned on success, -1 on failure (for instance if the process is not a group leader or does not exist). See prog (3) for the actual meaning of these set- tings. SOURCE /appl/lib/exception.b SEE ALSO prog(3) Page 1 Plan 9 (printed 12/22/24)