Same for your StringIndexOutOfBounds exception, though maybe you want to explicitly check for this and throw an IllegalDataException yourself.