org.scalatest.prop

PropertyTestFailedException

class PropertyTestFailedException 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.)

    authors:
  1. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. TestFailedException
  2. ModifiableMessage
  3. StackDepthException
  4. StackDepth
  5. RuntimeException
  6. Exception
  7. Throwable
  8. Serializable
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new PropertyTestFailedException(message: String, cause: Option[Throwable], failedCodeStackDepth: Int, undecoratedMessage: String, args: List[Any], labels: List[String])

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. val args: List[Any]

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def canEqual(other: Any): Boolean

    Indicates whether this object can be equal to the passed object.

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  12. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  13. def equals(other: Any): Boolean

    Indicates whether this object is equal to the passed object.

  14. def failedCodeFileNameAndLineNumberString: Option[String]

    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.

  15. val failedTestCodeFileNameAndLineNumberString: Option[String]

    failedTestCodeFileNameAndLineNumberString has been deprecated and will be removed in a future version of ScalaTest.

  16. val failedTestCodeStackDepth: Int

    failedTestCodeStackDepth has been deprecated and will be removed in a future version of ScalaTest.

  17. def fillInStackTrace(): Throwable

  18. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  19. def getCause(): Throwable

  20. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  21. def getLocalizedMessage(): String

  22. def getMessage(): String

  23. def getStackTrace(): Array[StackTraceElement]

  24. def hashCode(): Int

    Returns a hash code value for this object.

  25. def initCause(throwable: Throwable): Throwable

  26. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  27. val labels: List[String]

  28. 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.

  29. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  30. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  31. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  32. def printStackTrace(arg0: PrintWriter): Unit

  33. def printStackTrace(arg0: PrintStream): Unit

  34. def printStackTrace(): Unit

  35. def setStackTrace(arg0: Array[StackTraceElement]): Unit

  36. def severedAtStackDepth: TestFailedException

    Returns an exception of class TestFailedException with failedExceptionStackDepth set to 0 and all frames above this stack depth severed off.

  37. def synchronized[T0](arg0: T0): T0

  38. def toString(): String

    Returns a string representation of the object.

  39. val undecoratedMessage: String

  40. def wait(): Unit

  41. def wait(arg0: Long, arg1: Int): Unit

  42. def wait(arg0: Long): Unit