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

search for in the

Exception::getCode> <Exception::__construct
Last updated: Fri, 01 Aug 2008

view this page in

Exception::getMessage

(PHP 5 >= 5.1.0)

Exception::getMessageGets 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



add a note add a note User Contributed Notes
Exception::getMessage
There are no user contributed notes for this page.

Exception::getCode> <Exception::__construct
Last updated: Fri, 01 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites