downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Exception::getPrevious> <Exception::__construct
[edit] Last updated: Fri, 23 Mar 2012

view this page in

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



add a note add a note User Contributed Notes Exception::getMessage
support resort 10-Mar-2009 11:40
<?php
$client
= new SoapClient ("http://example.com");
try {
   
$response = $client->Client_Function();
} catch(
SoapFault  $e) {
    echo
$e->getMessage();
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites