Class ErrorEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ErrorEvent
    extends java.util.EventObject
    Defines an event which encapsulates an error which occurred in a JX Swing component which supports ErrorListeners.
    Author:
    Joshua Marinacci joshua.marinacci@sun.com
    See Also:
    ErrorListener, ErrorSupport, Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorEvent​(java.lang.Throwable throwable, java.lang.Object source)
      Creates a new instance of ErrorEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getThrowable()
      Gets the Error or Exception which occurred.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ErrorEvent

        public ErrorEvent​(java.lang.Throwable throwable,
                          java.lang.Object source)
        Creates a new instance of ErrorEvent
        Parameters:
        throwable - The Error or Exception which occurred.
        source - The object which threw the Error or Exception
    • Method Detail

      • getThrowable

        public java.lang.Throwable getThrowable()
        Gets the Error or Exception which occurred.
        Returns:
        The Error or Exception which occurred.