
reset_event_handler(+EventId)

   Resets the handler for error number Number to its default value.



Arguments
   +EventId            Atom or Integer.

Type
   Event Handling

Description
   If the event name is an error number, the error handler is reset to
   its default value, cancelling any previous redefinition.


   Otherwise, any previously installed handler is uninstalled, and
   future occurrences of the event will cause an error (32).




Resatisfiable
      No.

Fail Conditions
      None.



Exceptions
     4 --- EventId is not instantiated.
     5 --- EventId is neither atom nor integer.
     6 --- EventId is integer, but not a valid error number.

Examples
   
Success:
    [eclipse 1]: event(hello).
    warning: no handler for event in hello
    yes.
    [eclipse 2]: set_event_handler(hello, writeln/1).    
    yes.
    [eclipse 3]: event(hello).
    hello
    [eclipse 2]: reset_event_handler(hello).
    yes.
    [eclipse 3]: event(hello).
    warning: no handler for event in hello
    yes.





See Also
   current_error / 1, get_event_handler / 3, error / 2, error / 3, event / 1, set_event_handler / 2
