php8.5
Home/ Manual/ predefined / throwable/ Throwable::getMessage

Throwable::getMessage

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets the message

Description

Throwable::getMessage(): string

Returns the message associated with the thrown object.

Parameters Parameters

Return Values

Returns the message associated with the thrown object.

See Also

  • Exception::getMessage

Source: language/predefined/throwable/getmessage.xml · from the official PHP manual (php/doc-en)