private static void throwBounds() {
    throw new IndexOutOfBoundsException("attempt to write past the end");
  }
Throws the excpetion for when an attempt is made to write past the end of the instance.
android/android_framework/dex-maker/src/main/java/com/android/dx/util/ByteArrayAnnotatedOutput.java