[ Event Handling | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
get_event_handler(+event, ?predspec, ?module)
returns the event handler for event/error event and its home module module.
- +event
- atom or integer.
- ?predspec
- term which unifies with atom/integer.
- ?module
- atom or variable.
Description
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.
Fail Conditions
fails if event is not an event.
fails if predspec or module do not unify with the
specification of the
current event handler for event.
Resatisfiable
no.
Exceptions
- (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