Opened 11 years ago

Closed 11 years ago

#5886 closed defect (wontfix)

Deferred docs say that a "CancelledError" is returned but instead a "Deferred Cancelled" is returned

Reported by: ptwobrussell Owned by: Dustin Machi
Priority: high Milestone: 1.1
Component: Core Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

Maybe this is a documentation error, maybe it's a coding error. I don't know. But I do know that the inline documentation for Deferred says that a CancelledError? will be returned if you call cancel() and in reality a "Deferred Cancelled" is returned. Easy fix either way, I suppose. See Deferred.js (as or r12491) for details.

Change History (2)

comment:1 Changed 11 years ago by dylan

Milestone: 1.1
Owner: changed from anonymous to Dustin Machi

comment:2 Changed 11 years ago by Dustin Machi

Resolution: wontfix
Status: newclosed

There isn't really any such thing as a CancelledError?...this just sends a Error with that as the text. It also sets a dojoType="cancel" property on the error object. This is basically how it is distinguished now. We can look at doing something differently if people feel strongly about it.

Note: See TracTickets for help on using tickets.