(self, ix)
Avoids weird error messages if someone does exception[ix] by
        mistake, since Exception has __getitem__ defined.
Avoids weird error messages if someone does exception[ix] by
        mistake, since Exception has __getitem__ defined.
Avoids weird error messages if someone does exception [ ix ] by mistake since Exception has __getitem__ defined .
def __getitem__(self, ix):
        """Avoids weird error messages if someone does exception[ix] by
        mistake, since Exception has __getitem__ defined."""
        raise AttributeError("__getitem__")
def __getitem__ ( self , ix ) : raise AttributeError ( "__getitem__" )