@exception::getMessage

Retrieves the reason for the exception from the exception handling block.

Syntax:

@exception::getMessage()

Parameters:

None

Returns:

(String) Contents of the exception message

Example: