=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the given index
                        is out of range.</dd>
<dd><code><a href="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</a></code> - for other failures</dd>
</dl>
</li>
</ul>
<a name="removeBodyPart-javax.mail.BodyPart-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeBodyPart</h4>
<pre>public&nbsp;boolean&nbsp;removeBodyPart(<a href="../../javax