Lines Matching refs:BadLocationException
369 * @exception BadLocationException thrown if the offset is
372 public int getLineOfOffset(int offset) throws BadLocationException {
375 throw new BadLocationException("Can't translate offset to line", -1);
377 throw new BadLocationException("Can't translate offset to line", doc.getLength()+1);
399 * @exception BadLocationException thrown if the line is
404 public int getLineStartOffset(int line) throws BadLocationException {
407 throw new BadLocationException("Negative line", -1);
409 throw new BadLocationException("No such line", getDocument().getLength()+1);
422 * @exception BadLocationException Thrown if the line is
427 public int getLineEndOffset(int line) throws BadLocationException {
430 throw new BadLocationException("Negative line", -1);
432 throw new BadLocationException("No such line", getDocument().getLength()+1);
460 } catch (BadLocationException e) {
478 } catch (BadLocationException e) {
511 } catch (BadLocationException e) {