Indicates whether this object can be equal to the passed object.
An optional cause, the Throwable
that caused this StackDepth
exception to be thrown.
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
.
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
message: Option[String]
An optional detail message for this StackDepth
exception.
def
printStackTrace(arg0: PrintWriter): Unit
def
printStackTrace(arg0: PrintStream): Unit
def
printStackTrace(): Unit
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
def
severedAtStackDepth: DuplicateTestNameException
Returns an exception of class DuplicateTestNameException
with failedExceptionStackDepth
set to 0 and
all frames above this stack depth severed off.
def
toString(): String
Returns a string representation of the object.
Exception that indicates an attempt was made to register a test that had the same name as a test already registered in the same suite. The purpose of this exception is to encapsulate information about the stack depth at which the line of code that made this attempt resides, so that information can be presented to the user that makes it quick to find the problem line of code. (In other words, the user need not scan through the stack trace to find the correct filename and line number of the offending code.)
authors:
Bill Venners