The OpenD Programming Language

enforce.enforce

  1. T enforce(T value, const(char)[] msg, string file, size_t line)
    template enforce(E : Throwable = Exception)
    T
    enforce
    (
    T
    )
    (,
    lazy const(char)[] msg = null
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if ()
    if (
    is(typeof(new E("", string.init, size_t.init)) : Throwable) ||
    is(typeof(new E(string.init, size_t.init)) : Throwable)
    )
  2. T enforce(T value, Dg dg)
  3. T enforce(T value, Throwable ex)

Meta