Arg.throwWith

Throws an EnsureException for the current parameter with the given message.

struct Arg(T)
const @trusted
void
throwWith
(
string msg
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

msg string

The message to pass to the exception's constructor.

file string

Used for passing the appropriate file name to the exception's constructor.

line size_t

Used for passing the appropriate line number to the exception's constructor.

Throws

EnsureException whenever it's called.

Meta

Authors

Tony J. Hudgins