ExcBuf.construct

Construct a throwable in place

struct ExcBuf
nothrow @trusted @nogc
T
construct
(
T : Throwable
A...
)
(
string file
,
size_t line
,,
auto ref A args
)

Parameters

file string

the reported source file of the exception

line size_t

the reported source file line of the exception

setTraceback bool

whether to set the stack trace

args A

arguments to pass to the exception's constructor

Meta