object Canceled extends Serializable
Companion object to class Canceled that provides, in addition to the extractor and factory method
provided by the compiler given its companion is a case class, a second factory method
that produces a Canceled outcome given a string message.
- Source
- Outcome.scala
- Alphabetic
- By Inheritance
- Canceled
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##(): Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-    def apply(message: String)(implicit pos: Position): CanceledCreates a Canceledoutcome given a string message.Creates a Canceledoutcome given a string message.For example, trait CancelAfterFailureuses this factory method to create aCanceledstatus if acancelRemainingflag is set, which will be the case if a test failed previously while running the suite:abstract override def withFixture(test: NoArgTest): Outcome = { if (cancelRemaining) Canceled("Canceled by CancelOnFailure because a test failed previously") else super.withFixture(test) match { case failed: Failed => cancelRemaining = true failed case outcome => outcome } } 
-    def apply(ex: Throwable)(implicit pos: Position): CanceledCreates a Canceledinstance with the passed inThrowable.Creates a Canceledinstance with the passed inThrowable. If the passed inThrowableis aTestCanceledException, it will be set asexceptionfield, in other case a newTestCanceledExceptionwill be created usingexas itscause- ex
- the passed in - Throwable
- returns
- An instance of - Canceledwith- exset as its- exceptionfield if- exis a- TestCanceledException, or a newly created- TestCanceledExceptionwith- exset as its- causeif- exis not a- TestCanceledException.
 
-    def apply(message: String, cause: Throwable)(implicit pos: Position): CanceledCreates a Canceledinstance with the passed in message and cause.Creates a Canceledinstance with the passed in message and cause.- message
- the message for the - TestCanceledExceptionset as its- exceptionfield
- cause
- the cause for the - TestCanceledExceptionset as its- exceptionfield
- returns
- An instance of - Canceledwith a- TestCanceledExceptioncreated from passed in- messageand- causeset as its- exceptionfield.
 
-    def apply()(implicit pos: Position): CanceledCreates a Canceledinstance, with aTestCanceledExceptionset as itsexceptionfield.Creates a Canceledinstance, with aTestCanceledExceptionset as itsexceptionfield.- returns
- An instance of - Canceledwith a- TestCanceledExceptionset as its- exceptionfield.
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def here(cause: Throwable)(implicit pos: Position): CanceledCreates a Canceledwith the passed in cause.Creates a Canceledwith the passed in cause.- cause
- the passed in cause 
- returns
- A - Canceledwith- exceptionfield set to a newly created- TestCanceledExceptionusing the passed in- cause.
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()