Package org.zkoss.zk.ui.script

## Class DefaultScriptErrorListener

- java.lang.Object
- - org.zkoss.zk.ui.script.DefaultScriptErrorListener

- All Implemented Interfaces:
    `java.io.Serializable`, `EventListener<ScriptErrorEvent>`

      public class DefaultScriptErrorListener
      extends java.lang.Object
      implements EventListener<ScriptErrorEvent>, java.io.Serializable

  A Default Event Listener for handling client javascript error
  Author:
    jameschu
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DefaultScriptErrorListener()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onEvent​(ScriptErrorEvent event)` | Notifies this listener that an event occurs.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultScriptErrorListener

          public DefaultScriptErrorListener()

  - ### Method Detail

    - #### onEvent

          public void onEvent​(ScriptErrorEvent event)
                       throws java.lang.Exception

      Description copied from interface: `EventListener`
      Notifies this listener that an event occurs. To get the event, you have to register it first by use of `Component.addEventListener(int, java.lang.String, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event>)` or `Page.addEventListener(java.lang.String, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event>)`.

      If you want to forward the event to other component, use `Events.sendEvent(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event)`.

      Specified by:
        `onEvent` in interface `EventListener<ScriptErrorEvent>`
      Throws:
        `java.lang.Exception`