checkBare

Checks a condition

  1. void checkBare(bool cond, string message)
  2. void checkBare(bool cond, string message)
    pure @safe
    void
    checkBare
    (
    T
    )
    (
    bool cond
    ,
    string message
    )
    if (
    is(T : Exception)
    )

Parameters

cond bool

The condition

message string

The exception message

Throws

The given exception (T) if cond is false

Meta