Exception::getMessage
(PHP 5 >= 5.1.0)
Exception::getMessage — Gets the Exception message
Descrierea
final public string Exception::getMessage
( void
)
Returns the Exception message.
Parametri
Această funcţie nu are parametri.
Valorile întroarse
Returns the Exception message as a string.
Exemple
Example #1 Exception::getMessage() example
<?php
try {
throw new Exception("Some error message");
} catch(Exception $e) {
echo $e->getMessage();
}
?>
Exemplul de mai sus va afişa ceva similar cu:
Some error message
Exception::getMessage
There are no user contributed notes for this page.
