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
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 Summary
ConstructorsConstructorDescriptionJemmyException
(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
Modifier and TypeMethodDescriptionDeprecated.Use getInnerThrowable()Returns inner throwable.Returns "object" constructor parameter.void
Prints stack trace into System.out.void
Prints stack trace.void
Prints stack trace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
JemmyException
Constructor.- Parameters:
description
- An exception description.
-
JemmyException
Constructor.- Parameters:
description
- An exception description.innerException
- Exception from code invoked from jemmy.
-
JemmyException
Constructor.- Parameters:
description
- An exception description.object
- Object regarding which exception is thrown.
-
JemmyException
Constructor.- Parameters:
description
- An exception description.innerException
- Exception from code invoked from jemmy.object
- Object regarding which exception is thrown.
-
-
Method Details
-
getObject
Returns "object" constructor parameter.- Returns:
- the Object value associated with the exception.
-
getInnerException
Deprecated.Use getInnerThrowable()Returns inner exception.- Returns:
- An inner exception.
-
getInnerThrowable
Returns inner throwable.- Returns:
- An inner throwable.
-
printStackTrace
public void printStackTrace()Prints stack trace into System.out.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints stack trace.- Overrides:
printStackTrace
in classThrowable
- Parameters:
ps
- PrintStream to print stack trace into.
-
printStackTrace
Prints stack trace.- Overrides:
printStackTrace
in classThrowable
- Parameters:
pw
- PrintWriter to print stack trace into.
-