Class JemmyException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JemmyInputException, JSpinnerOperator.SpinnerModelException, RegExComparator.RegExParsingException, TestCompletedException, TimeoutExpiredException, UnsupportedOperatorException

public class JemmyException extends RuntimeException
Parent of all Jemmy exceptions. Exception can be throught from inside jemmy methods, if some exception occurs from code invoked from jemmy.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Constructor Details

    • JemmyException

      public JemmyException(String description)
      Constructor.
      Parameters:
      description - An exception description.
    • JemmyException

      public JemmyException(String description, Throwable innerException)
      Constructor.
      Parameters:
      description - An exception description.
      innerException - Exception from code invoked from jemmy.
    • JemmyException

      public JemmyException(String description, Object object)
      Constructor.
      Parameters:
      description - An exception description.
      object - Object regarding which exception is thrown.
    • JemmyException

      public JemmyException(String description, Throwable innerException, Object object)
      Constructor.
      Parameters:
      description - An exception description.
      innerException - Exception from code invoked from jemmy.
      object - Object regarding which exception is thrown.
  • Method Details

    • getObject

      public Object getObject()
      Returns "object" constructor parameter.
      Returns:
      the Object value associated with the exception.
    • getInnerException

      public Exception getInnerException()
      Deprecated.
      Use getInnerThrowable()
      Returns inner exception.
      Returns:
      An inner exception.
    • getInnerThrowable

      public Throwable getInnerThrowable()
      Returns inner throwable.
      Returns:
      An inner throwable.
    • printStackTrace

      public void printStackTrace()
      Prints stack trace into System.out.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream ps)
      Prints stack trace.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      ps - PrintStream to print stack trace into.
    • printStackTrace

      public void printStackTrace(PrintWriter pw)
      Prints stack trace.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      pw - PrintWriter to print stack trace into.