-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 06.08.2012 20:44, schrieb Stas Malyshev:
> Hi!
> 
>> but sometimes you want to be more precise. With exceptions, we
>> have an elegant way to manage all failures as a whole, or to
>> differenciate each reason.
> 
> You do not, unless you have 20 exception types and catch them all 
> separately.
No.

You just check for those types which you need to handle _here_ and
catch-all where apropriate by deriving exceptions from a common
library-wide root type.


- -- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAgHIIACgkQCs1dsHJ/X7BSsQCgzbacmum28vsn837bgh1HXmCI
tgsAoNicnocgS7gGPoD3WTGflS4ovnXV
=+aFB
-----END PGP SIGNATURE-----

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to