Throwable.message

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.

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

Return Value

Type: const(char)[]

A message representing the cause of the Throwable

Meta