Implement InvalidCursorPositionError class