PHP Conference China 2020


(No version information available, might only be in Git)

Error::getMessageGets the error message


final public Error::getMessage ( void ) : string

Returns the error message.


This function has no parameters.

Return Values

Returns the error message as a string.


Example #1 Error::getMessage() example

try {
    throw new 
Error("Some error message");
} catch(
Error $e) {

The above example will output something similar to:

Some error message

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top