Class ErrorEvent

  • All Implemented Interfaces:
    Serializable

    public final class ErrorEvent
    extends EventObject
    This class is used by the SmartInspectListener.onError event of the SmartInspect class and the ProtocolListener.onError event of the Protocol class.

    It has only one public class member named getException. This member is a method, which just returns the occurred exception.

    This class is fully thread-safe.

    See Also:
    Serialized Form
    • Constructor Detail

      • ErrorEvent

        public ErrorEvent​(Object source,
                          Exception e)
        Creates and initializes an ErrorEvent instance.
        Parameters:
        source - The object which fired the event.
        e - The occurred exception.
    • Method Detail

      • getException

        public Exception getException()
        Returns the occurred exception.
        Returns:
        The occurred exception.