JavaTM 2 Platform Std. Ed. v1.4.2
- All Implemented Interfaces:
- public class BadLocationException
- extends Exception
This exception is to report bad locations within a document model
(that is, attempts to reference a location that doesn't exist).
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the
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
public BadLocationException(String s,
- Creates a new BadLocationException object.
s - a string indicating what was wrong with the arguments
offs - offset within the document that was requested >= 0
public int offsetRequested()
- Returns the offset into the document that was not legal.
- the offset >= 0
Copyright 2003 Sun Microsystems, Inc. All rights reserved