javax.swing.text
Class BadLocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.swing.text.BadLocationException
- All Implemented Interfaces:
- Serializable
public class BadLocationException
- extends Exception
Indicates that an invalid location within a Document
has been
accessed.
- See Also:
- Serialized Form
Method Summary |
int |
offsetRequested()
Returns the offset into the document that was not legal. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
BadLocationException
public BadLocationException(String str,
int offset)
- Constructs a
BadLocationException
- Parameters:
str
- a string indicating what was wrong with the argumentsoffset
- offset within the document that was requested >= 0
offsetRequested
public int offsetRequested()
- Returns the offset into the document that was not legal.
- Returns:
- the offset into the document that was not legal