On Feb 5, 2014, at 12:05 AM, Jonas Sicking <[email protected]> wrote:
> On Tue, Feb 4, 2014 at 9:49 AM, Domenic Denicola > <[email protected]> wrote: >> From: es-discuss <[email protected]> on behalf of Allen >> Wirfs-Brock <[email protected]> >> >>> I've designed exception handling systems before and designed and worked >>> with complex exception hierarchies. My main caveat is that they are >>> somewhat of an attractive nuisance. It's easy to get into designing >>> beautiful classification hierarchies of dozens of different kinds of >>> exceptions, each with their own specific failure information that is >>> captured. In practice, I've found very little actual utility for them. >> >> My (more limited) experience is the same. > > I agree. Creating hierarchies of error "types" seems fragile to me. > The other problem (an extension of “fragile”) is error objects when more than one global object/realm is involved. Once you’re in that scenario type selection (e.g. making use of |instanceof|) can no longer be used in any meaningful way. —Oliver _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

