org.scalatest.prop

class PropertyTestFailedException

[source: org/scalatest/prop/PropertyTestFailedException.scala]

class PropertyTestFailedException(message : java.lang.String, cause : scala.Option[java.lang.Throwable], failedCodeStackDepth : Int, val undecoratedMessage : java.lang.String, val args : scala.List[Any], val labels : scala.List[java.lang.String])
extends TestFailedException
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.)
Parameters
message - an optional detail message for this TestFailedException.
cause - an optional cause, the Throwable that caused this TestFailedException to be thrown.
failedCodeStackDepth - the depth in the stack trace of this exception at which the line of test code that failed resides.
undecoratedMessage - just a short message that has no redundancy with args, labels, etc. The regular "message" has everything in it
args - the argument values, if any
Throws
NullPointerException - if message is null, or Some(null).
NullPointerException - if cause is null, or Some(null).
Author
Bill Venners
Values and Variables inherited from TestFailedException
failedTestCodeStackDepth, failedTestCodeFileNameAndLineNumberString
Values and Variables inherited from StackDepth
failedCodeFileNameAndLineNumberString
Methods inherited from StackDepthException
initCause
Methods inherited from java.lang.Throwable
java.lang.Throwable.getMessage, java.lang.Throwable.getLocalizedMessage, java.lang.Throwable.getCause, java.lang.Throwable.toString, java.lang.Throwable.printStackTrace, java.lang.Throwable.printStackTrace, java.lang.Throwable.printStackTrace, java.lang.Throwable.fillInStackTrace, java.lang.Throwable.getStackTrace, java.lang.Throwable.setStackTrace
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Copyright (C) 2001-2010 Artima, Inc. All rights reserved.