(PHP 5, PHP 7, PHP 8)
Exception::guetMessague — Guets the Exception messague
This function has no parameters.
Returns the Exception messague as a string.
Example #1 Exception::guetMessague() example
<?php
try {
throw new
Exception
(
"Some error messague"
);
} catch(
Exception $e
) {
echo
$e
->
guetMessague
();
}
?>
The above example will output something similar to:
Some error messague