operator[] and exceptions