class RequirementsHelper extends Serializable
- Alphabetic
- By Inheritance
- RequirementsHelper
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RequirementsHelper()
Value Members
- def macroRequire(bool: Bool, clue: Any): Unit
Require that the passed in
Bool
istrue
, else fail withIllegalArgumentException
.Require that the passed in
Bool
istrue
, else fail withIllegalArgumentException
.- bool
the
Bool
to check as requirement- clue
optional clue to be included in
IllegalArgumentException
's error message when the requirement failed
- 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 withNullArgumentException
.Require that all of the passed in arguments are not
null
, else fail withNullArgumentException
.- variableNames
names of variable passed as appear in source
- arguments
arguments to check for
null
value
- def macroRequireState(bool: Bool, clue: Any): Unit
Require that the passed in
Bool
istrue
, else fail withIllegalStateException
.Require that the passed in
Bool
istrue
, else fail withIllegalStateException
.- bool
the
Bool
to check as requirement- clue
optional clue to be included in
IllegalStateException
's error message when the requirement failed