Before

trait Before extends Context

The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action

See also:

Example to understand why the type T must : AsResult

Companion:
object
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any

Value members

Abstract methods

def before: Any

override this method to provide the before behavior

override this method to provide the before behavior

Concrete methods

sequence the actions of 2 Before traits

sequence the actions of 2 Before traits

override def apply[T : AsResult](a: => T): Result

execute an action returning a Result and finally the before action.

execute an action returning a Result and finally the before action.

The action will be aborted if the before block fails:

  • with an exception
  • with a non-Success result
  • with a non-Success match result
Definition Classes

compose the actions of 2 Before traits

compose the actions of 2 Before traits