check

Checks a condition

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

Parameters

cond bool

The condition

message string

The user defined exception message

Throws

The given exception (T) if cond is false

Meta