RequirementsHelper

org.scalactic.Requirements.RequirementsHelper
class RequirementsHelper extends Serializable

Helper class used by code generated by the require macro.

Attributes

Source
Requirements.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def macroRequire(bool: Bool, clue: Any): Unit

Require that the passed in Bool is true, else fail with IllegalArgumentException.

Require that the passed in Bool is true, else fail with IllegalArgumentException.

Value parameters

bool

the Bool to check as requirement

clue

optional clue to be included in IllegalArgumentException's error message when the requirement failed

Attributes

Source
Requirements.scala
def macroRequireNonNull(variableNames: Array[String], arguments: Array[Any], prettifier: Prettifier, pos: Position): Unit

Require that all of the passed in arguments are not null, else fail with NullArgumentException.

Require that all of the passed in arguments are not null, else fail with NullArgumentException.

Value parameters

arguments

arguments to check for null value

variableNames

names of variable passed as appear in source

Attributes

Source
Requirements.scala
def macroRequireState(bool: Bool, clue: Any): Unit

Require that the passed in Bool is true, else fail with IllegalStateException.

Require that the passed in Bool is true, else fail with IllegalStateException.

Value parameters

bool

the Bool to check as requirement

clue

optional clue to be included in IllegalStateException's error message when the requirement failed

Attributes

Source
Requirements.scala