ExcBuf.constructFmt

Construct a Throwable, formatting the message

Construct a Throwable that has a constructor that accepts a single string argument (such as Exception). Allows formatting arguments into the string in a non GC way.

Second form of the function receives the string as a template argument, and verifies that the arguments match the format string.

  1. T constructFmt(string file, size_t line, string fmt, A args)
  2. T constructFmt(string file, size_t line, A args)
    struct ExcBuf
    @trusted
    T
    constructFmt
    (
    string fmt
    T : Throwable = Exception
    A...
    )
    (
    string file
    ,
    size_t line
    ,
    auto ref A args
    )

Meta