[nycphp-talk] PHP 5 Throwing Exceptions in Constructors
Matthew Terenzio
matt at jobsforge.com
Wed Feb 9 22:00:31 EST 2005
On Feb 9, 2005, at 5:39 PM, Adam Maccabee Trachtenberg wrote:
> If you're concerned a non-essential portion can fail, you can either:
>
> a) Don't throw an exception in that instance, return the object, and
> provide developers with a way to check status.
>
> b) Don't place that functionality in the constructor, and provide a
> method to update the object with the additional data.
>
> -adam
Is it possible to gain some insulation in certain cases by using a
specific exception subclass object type?
More information about the talk
mailing list