Thrown when you attempt to format a span beyond the length of the text property value.
richTextView.setText("This is too short"); richTextView.formatSpan(0, 11, FormatType.SUBSCRIPT);
This should be caught and handled (truncated to the length of the string). If I get time I will create a branch, fix it and submit a PR.