Commit b6a44253 authored by Fred Drake's avatar Fred Drake

DOMException._get_code():

    New method; this is the "alternate" access to the exception code.
    (Useful for Python DOM implementations that support the accessor
    method approach to retrieving attribute values.)
parent e09f6394
......@@ -67,6 +67,9 @@ class DOMException(Exception):
"DOMException should not be instantiated directly")
apply(Exception.__init__, (self,) + args, kw)
def _get_code(self):
return self.code
class IndexSizeErr(DOMException):
code = INDEX_SIZE_ERR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment