[dojo-contributors] Stance on custom error types
mark at novemberborn.net
Wed Jun 6 18:57:15 EDT 2012
Just landed this on trunk, with only the Promise changes, and helper code according to Bryan's gist.
On 6 Jun 2012, at 18:14, Bryan Forbes wrote:
> Mark Wubben wrote:
>> On 6 Jun 2012, at 12:46, Bryan Forbes wrote:
>>> It looks good, however I'm working on some changes to the internals to
>>> dojo/request which would change how errors are passed around. I like
>>> dojo/errors and will move the errors I have created locally to that
>> Should I remove the dojo/request changes from my patch?
> If you don't mind, yes. It'll be easier for me to make my changes that
> way :).
>> Also, depending on how many error objects we create, should we just add a utility to take care of the subclassing? Much like <https://github.com/promised-io/core/blob/master/lib/errorFactory.js>.
> That looks pretty similar to what Eugene posted yesterday, but I think
> we can do better. I wrote up something here and would welcome feedback:
> Bryan Forbes
> GPG Fingerprint
> 3D7D B728 713A BB7B B8B1 5B61 3888 17E0 70CA 0F3D
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
More information about the dojo-contributors