TimeoutField

Trait mixed into exceptions thrown due to a timeout, which offers a timeout field providing a Span representing the timeout that expired.

This trait is used by trait TimeLimitedTests to detect exceptions thrown because of timeouts, and for such exceptions, to modify the message to more clearly indicate a test timed out. (Although in its initial release there is only one subclass of TimeoutField in ScalaTest, TestFailedDueToTimeoutException, in future version of ScalaTest, there could be more)

class Object
trait Matchable
class Any
Throwable

Value members

Abstract fields

The timeout that expired causing this Timeout exception.

The timeout that expired causing this Timeout exception.