javax.swing.text

Class BadLocationException

public class BadLocationException extends Exception

Indicates that an invalid location within a Document has been accessed.
Constructor Summary
BadLocationException(String str, int offset)
Constructs a BadLocationException
Method Summary
intoffsetRequested()
Returns the offset into the document that was not legal.

Constructor Detail

BadLocationException

public BadLocationException(String str, int offset)
Constructs a BadLocationException

Parameters: str a string indicating what was wrong with the arguments offset offset within the document that was requested >= 0

Method Detail

offsetRequested

public int offsetRequested()
Returns the offset into the document that was not legal.

Returns: the offset into the document that was not legal