git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333170 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2014-03-29 21:53:21 +00:00
parent 095f25e181
commit 22faf81b0e

View file

@ -42,7 +42,7 @@ class Custom_Exception extends Exception {};
class API {
public function throw_exception($name) {
throw new Custom_Exception($name);
throw new Custom_Exception($name);
}
}
@ -55,10 +55,10 @@ $service->handle();
$client = new Yar_Client("http://host/api.php");
try {
$client->throw_exception("client");
$client->throw_exception("client");
} catch (Yar_Server_Exception $e) {
var_dump($e->getType());
var_dump($e->getMessage());
var_dump($e->getType());
var_dump($e->getMessage());
}
]]>
</programlisting>