<?php
$client = new SoapClient ("http://example.com");
try {
$response = $client->Client_Function();
} catch(SoapFault $e) {
echo $e->getMessage();
}
?>
Exception::getMessage
(PHP 5 >= 5.1.0)
Exception::getMessage — Gets the Exception message
Descrizione
final public string Exception::getMessage
( void
)
Returns the Exception message.
Elenco dei parametri
Questa funzione non contiene parametri.
Valori restituiti
Returns the Exception message as a string.
Esempi
Example #1 Exception::getMessage() example
<?php
try {
throw new Exception("Some error message");
} catch(Exception $e) {
echo $e->getMessage();
}
?>
Il precedente esempio visualizzerĂ qualcosa simile a:
Some error message
support resort ¶
4 years ago
