Throwable.message

const(char)[] message() @__future const @safe nothrow

Get the message describing the error.

This getter is an alternative way to access the Exception's message, with the added advantage of being override-able in subclasses. Subclasses are hence free to do their own memory managements without being tied to the requirement of providing a string in a field.

The default behavior is to return the Throwable.msg field.

Returns

A message representing the cause of the Throwable