W3C home > Mailing lists > Public > www-di@w3.org > June 2005

[DPF] Errors meaning the same thing section 4.3 and 4.8

From: Keith Waters <kwaters@ftrd.us>
Date: Thu, 2 Jun 2005 13:58:16 -0400
Message-Id: <A572476F-8B84-45D4-A14D-882DE80642BD@ftrd.us>
To: www-di@w3.org

Hi Jeremy,

This message contains a response to comments on

http://www.w3.org/TR/2004/WD-DPF-20041122/

e10:
section 4.3 and 4.8
INDEX_SIZE_ERR or INVALID_ACCESS_ERR

Do these two errors mean the same thing?
(Sorry again overlap with substantive comment, s14 concerning text of  
4.3)


No, the errors do not mean the same thing. These exceptions apply to  
the Item() method within the DPFPropertyList interface. The Item()  
method returns a DPFProperty within the property list based on an  
index (size of list) value. The INDEX_SIZE_ERR is raised if an  
invalid size number is used as a parameter to item call. The  
INVALID_ACCESS_ERR is raised due to an invalid memory access that  
occurs after a DPFProperty was accessed from the list. For example, a  
script object would have accessed the value pointer of a DPFProperty  
node from the property list. Now the property was removed from the  
list. If the script object tries to access the value pointer (that  
was stored in the previous call), this exception would be raised.

-Keith Waters
Received on Thursday, 2 June 2005 17:58:47 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 2 June 2005 17:58:48 GMT