{   throw new AssertionError("No child views found where child views are " + "expected. pos = " + pos + ", bias = " + bias); }
throw new BadLocationException("No child view for the specified location", pos);
  public Shape modelToView(int pos, Shape a, Position.Bias bias)    throws BadLocationException  {    int childIndex = getViewIndex(pos, bias);    if (childIndex != -1)      {        View child = getView(childIndex);        Shape result = child.modelToView(pos, a, bias);        if (result == null)          throw new AssertionError("" + child.getClass().getName()                                   + ".modelToView() must not return null");        return result;      }    else      {        // FIXME: Handle the case when we have no child view for the given        // position.        throw new AssertionError("No child views found where child views are "                                 + "expected. pos = " + pos + ", bias = "                                 + bias);      }  }