ErrnoException.addMessage

Convenience method to append extra message in brackets

If msg is empty, nothing is done

class ErrnoException
typeof(this)
addMessage

Parameters

msg cstring

additional message to clarify the error, will be appended after errno-based messaged inside parenthesis

Return Value

Type: typeof(this)

this

Examples

auto e = new ErrnoException;
e.set(ENOTBLK).addMessage("msg");
test!("==")(e.message(), "Block device required (msg)"[]);

Meta