com.jscape.inet.terminal.events

## Class ExceptionEvent

- java.lang.Object
- - com.jscape.inet.terminal.events.ExceptionEvent

- All Implemented Interfaces:
    TerminalEvent

      public class ExceptionEvent
      extends java.lang.Object
      implements TerminalEvent

  Represents `Terminal` exception event. This event is generated when any exception occured. Holds information about exception.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExceptionEvent(java.lang.Exception ex)` Creates `ExceptionEvent` object giving occured exception.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(TerminalListener listener)` Calls correct callback method of `TerminalListener` object.
    `java.lang.Exception` | `getException()` Returns exception.

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

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

- - ### Constructor Detail

    - #### ExceptionEvent

          public ExceptionEvent(java.lang.Exception ex)

      Creates `ExceptionEvent` object giving occured exception.
      Parameters:
        `ex` - exception.

  - ### Method Detail

    - #### getException

          public java.lang.Exception getException()

      Returns exception.
      Returns:
        exception.

    - #### accept

          public void accept(TerminalListener listener)

      Calls correct callback method of `TerminalListener` object.
      Specified by:
        `accept` in interface `TerminalEvent`
      Parameters:
        `listener` - `TerminalListener` object.

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved