ErrorCode.toString

Returns string describing the error number. If a description for a specific error number is not available, returns $(D_KEYWORD null).

struct ErrorCode
const @nogc nothrow pure @safe
string
toString
()

Return Value

Type: string

String describing the error number.

Examples

ErrorCode ec = ErrorCode.fault;
assert(ec.toString() == "An invalid pointer address detected");

Meta