public class BadLocationException extends Exception
Document has been
accessed.| Constructor and Description |
|---|
BadLocationException(String str,
int offset)
Constructs a
BadLocationException |
| Modifier and Type | Method and Description |
|---|---|
int |
offsetRequested()
Returns the offset into the document that was not legal.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BadLocationException(String str, int offset)
BadLocationExceptionstr - a string indicating what was wrong with the argumentsoffset - offset within the document that was requested >= 0public int offsetRequested()