mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333170 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
095f25e181
commit
22faf81b0e
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue