description

Returns a description of the throwable.

  1. string description(Throwable throwable)
    @safe pure nothrow
    string
    description
    (
    Throwable throwable
    )
  2. string description(string expected, string actual)

Examples

assert(description(new Throwable("foobar"))
		== "object.Throwable: foobar");

assert(description(new Throwable("foobar", "foo.d", 42))
		== "object.Throwable@foo.d(42): foobar");

Meta