[ Event Handling | Reference Manual | Alphabetic Index ]

get_event_handler(+Event, -Predspec, -Module)

Returns the event handler for event/error Event and its home module Module.
atom or integer.
term which unifies with atom/integer.
atom or variable.


Given the event name/error number Event, Predspec is unified with the specification (i.e. a term of the form name/arity) of the current handler for event; Module is unified with its home module.

The events which exist are user defined; the errors which exist are implementation defined.

Modes and Determinism

Fail Conditions

Fails if Event is not an event


(4) instantiation fault
Event is not instantiated.
(5) type error
Event is not an atom nor integer.
(5) type error
PredSpec is neither a variable nor of the form Atom/Integer.

See Also

set_event_handler / 2, event / 1