Indicates whether this object can be equal to the passed object.
Indicates whether this object is equal to the passed object.
A string that provides the filename and line number of the line of code that failed, suitable
for presenting to a user, which is taken from this exception's StackTraceElement
at the depth specified
by failedCodeStackDepth
.
val
failedTestCodeFileNameAndLineNumberString: Option[String]
failedTestCodeFileNameAndLineNumberString
has been deprecated and will be removed in a future version of
ScalaTest.
val
failedTestCodeStackDepth: Int
failedTestCodeStackDepth
has been deprecated and will be removed in a future version of
ScalaTest.
def
fillInStackTrace(): Throwable
def
getCause(): Throwable
def
getLocalizedMessage(): String
def
getMessage(): String
def
getStackTrace(): Array[StackTraceElement]
def
hashCode(): Int
Returns a hash code value for this object.
def
initCause(throwable: Throwable): Throwable
val
labels: List[String]
def
modifyMessage(fun: (Option[String]) ⇒ Option[String]): TestFailedException
Returns an instance of this exception's class, identical to this exception,
except with the detail message option string replaced with the result of passing
the current detail message to the passed function, fun
.
def
printStackTrace(arg0: PrintWriter): Unit
def
printStackTrace(arg0: PrintStream): Unit
def
printStackTrace(): Unit
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
def
severedAtStackDepth: TestFailedException
Returns an exception of class TestFailedException
with failedExceptionStackDepth
set to 0 and
all frames above this stack depth severed off.
def
toString(): String
Returns a string representation of the object.
val
undecoratedMessage: String
Exception that indicates a test failed. The purpose of this exception is to encapsulate information about the stack depth at which the line of test code that failed resides, so that information can be presented to the user that makes it quick to find the failing line of test code. (I.e., the user need not scan through the stack trace to find the correct filename and line number of the failing test.)
authors:
Bill Venners