Re: Error handling brainstorming

From: Date: Mon, 06 Aug 2012 19:35:30 +0000
Subject: Re: Error handling brainstorming
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-62071@lists.php.net to get a copy of this message
-----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: lang@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-----

« previous php.internals (#62071) next »