<?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 — İstisna iletisi ile döner
Açıklama
final public string Exception::getMessage
( void
)
İstisna iletisi ile döner.
Değiştirgeler
Bu işlevin değiştirgesi yoktur.
Dönen Değerler
İstisna iletisi bir dizge olarak döner.
Örnekler
Örnek 1 - Exception::getMessage() örneği
<?php
try {
throw new Exception("Bir hata iletisi");
} catch(Exception $e) {
echo $e->getMessage();
}
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Bir hata iletisi
support resort
10-Mar-2009 11:40
