Package org.netbeans.jemmy
Class JemmyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.netbeans.jemmy.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JemmyException(String description)
Constructor.JemmyException(String description, Object object)
Constructor.JemmyException(String description, Throwable innerException)
Constructor.JemmyException(String description, Throwable innerException, Object object)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Exception
getInnerException()
Deprecated.Use getInnerThrowable()Throwable
getInnerThrowable()
Returns inner throwable.Object
getObject()
Returns "object" constructor parameter.void
printStackTrace()
Prints stack trace into System.out.void
printStackTrace(PrintStream ps)
Prints stack trace.void
printStackTrace(PrintWriter pw)
Prints stack trace.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
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 classThrowable
-
printStackTrace
public void printStackTrace(PrintStream ps)
Prints stack trace.- Overrides:
printStackTrace
in classThrowable
- Parameters:
ps
- PrintStream to print stack trace into.
-
printStackTrace
public void printStackTrace(PrintWriter pw)
Prints stack trace.- Overrides:
printStackTrace
in classThrowable
- Parameters:
pw
- PrintWriter to print stack trace into.
-
-