Package com.sun.ts.lib.harness
Class EETest.Fault
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.ts.lib.harness.EETest.Fault
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- EETest
This exception must be thrown by all implentations of EETest to signify a test failure. Overrides 3 printStackTrace
 methods to preserver the original stack trace. Using setStackTraceElement() would be more elegant but it is not
 available prior to j2se 1.4.
- Author:
- Kyle Grucci
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetCause()voidPrints this Throwable and its backtrace to the standard error stream.voidPrints this throwable and its backtrace to the specified print stream.voidPrints this throwable and its backtrace to the specified print writer.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
- 
Field Details- 
t
 
- 
- 
Constructor Details- 
Faultcreates a Fault with a message
- 
Faultcreates a Fault with a message.- Parameters:
- msg- the message
- t- prints this exception's stacktrace
 
- 
Faultcreates a Fault with a Throwable.- Parameters:
- t- the Throwable
 
 
- 
- 
Method Details- 
printStackTracepublic void printStackTrace()Prints this Throwable and its backtrace to the standard error stream.- Overrides:
- printStackTracein class- Throwable
 
- 
printStackTracePrints this throwable and its backtrace to the specified print stream.- Overrides:
- printStackTracein class- Throwable
- Parameters:
- s-- PrintStreamto use for output
 
- 
printStackTracePrints this throwable and its backtrace to the specified print writer.- Overrides:
- printStackTracein class- Throwable
- Parameters:
- s-- PrintWriterto use for output
 
- 
getCause
- 
initCause
 
-