enforceImpl

ditto

  1. void enforceImpl(T ok, istring msg, istring file, int line)
  2. void enforceImpl(Exception e, T ok, istring msg, istring file, int line)
  3. void enforceImpl(T1 a, T2 b, istring file, int line)
  4. void enforceImpl(Exception e, T1 a, T2 b, istring file, int line)
    void
    enforceImpl
    (
    istring op
    T1
    T2
    )
    (
    lazy Exception e
    ,
    T1 a
    ,
    T2 b
    ,
    istring file
    ,
    int line
    )

Parameters

op

binary operator string

T1

type of left operand

T2

type of right operand

e Exception

exception instance to throw in case of an error (evaluated once in case of an error, not evaluated otherwise)

a T1

left operand

b T2

right operand

file istring

file of origin

line int

line of origin

Throws

e if expression evaluates to false

Meta